Time interval measuring device and method based on multi-channel interpolation

文档序号:1534288 发布日期:2020-02-14 浏览:7次 中文

阅读说明:本技术 一种基于多通道内插的时间间隔测量装置及方法 (Time interval measuring device and method based on multi-channel interpolation ) 是由 毛黎明 杜念文 刘强 丁建岽 孙宝征 于 2019-11-14 设计创作,主要内容包括:本发明涉公开了一种基于多通道内插的时间间隔测量装置及方法,具体涉及高分辨率的时间间隔测量技术领域。该基于多通道内插的时间间隔测量装置,包括被测闸门生成单元,被测闸门生成单元上连接计数单元、前误差提取单元和后误差提取单元,计数单元、前误差提取单元和后误差提取单元连接同一时钟单元,前误差提取单元连接第一多路分发单元,第一多路分发单元上连接若干前内插单元,后误差提取单元连接第二多路分发单元,第二多路分发单元上连接若干后内插单元,计数单元、前内插单元和后内插单元连接运算单元。该方案采用多通道内插同时测量,再进行平均计算的方法,测量分辨率为原有分辨率的<Image he="73" wi="129" file="DDA0002272395570000011.GIF" imgContent="drawing" imgFormat="GIF" orientation="portrait" inline="no"></Image>(N为内插通道数)。(The invention discloses a time interval measuring device and method based on multi-channel interpolation, and particularly relates to the technical field of high-resolution time interval measurement. The time interval measuring device based on multi-channel interpolation comprises a measured gate generating unit, wherein the measured gate generating unit is connected with a counting unit, a front error extraction unit and a rear error extraction unit, the counting unit, the front error extraction unit and the rear error extraction unit are connected with the same clock unit, the front error extraction unit is connected with a first multi-channel distribution unit, the first multi-channel distribution unit is connected with a plurality of front interpolation units, the rear error extraction unit is connected with a second multi-channel distribution unit, the second multi-channel distribution unit is connected with a plurality of rear interpolation units, and the counting unit, the front interpolation units and the rear interpolation units are connected with an operation unit. The scheme adopts a method of simultaneously measuring by multi-channel interpolation and then carrying out average calculation, and the measurement resolution is the original resolution (N is the number of interpolation channels).)

1. The utility model provides a time interval measuring device based on multichannel interpolation, its characterized in that, including the gate generation unit that is surveyed, the gate generation unit that is surveyed goes up to connect the count unit, preceding error extraction unit and back error extraction unit, the count unit, preceding error extraction unit and back error extraction unit connect same clock unit, preceding error extraction unit connects first multichannel distribution unit, connect a plurality of preceding interpolation units on the first multichannel distribution unit, back error extraction unit connects second multichannel distribution unit, connect a plurality of back interpolation units on the second multichannel distribution unit, the count unit, preceding interpolation unit and back interpolation unit connect the arithmetic unit.

2. A time interval measuring method based on multi-channel interpolation, characterized in that the time interval measuring device based on multi-channel interpolation of claim 1 is adopted, and the method comprises the following steps:

sending a signal starting instruction and a signal stopping instruction to a tested gate generating unit to obtain a tested gate, dividing an output signal of the tested gate generating unit into three paths, and enabling the first path to enter a counting unit;

the second path enters a front error extraction unit, signals of a clock unit are sent to the front error extraction unit, a front error gate can be obtained by adopting edge triggering extraction, the signals are sent to a first multi-path distribution unit and divided into N paths, each path is subjected to interpolation processing respectively, and front error data T is obtained01,T02,T0NSending the data to an arithmetic unit;

the third path enters a back error extraction unit, simultaneously, signals of the clock unit are also sent to the back error extraction unit, an edge triggering extraction is adopted to obtain a back error gate, the back error gate is sent to a second multi-path distribution unit and divided into N paths, interpolation processing is respectively carried out on each path, and back error data T is obtained11,T12,T1NSending the data to an arithmetic unit;

the arithmetic unit calculates the time interval by adopting the formula (1),

Figure FDA0002272395540000011

wherein M is0For counting of the counting unit, TclkA clock signal period of the clock unit;

calibrating each path of interpolation unit, and after calibration, using a final operation unit for time interval calculation, wherein the calculation formula is shown as formula (2):

Figure FDA0002272395540000012

3. a multi-channel interpolation-based time interval measurement method as claimed in claim 2, wherein the pre-interpolation unit calibration procedure is:

sending the clock as the measured signal to the gate generating unit to be measured, measuring 100 time intervals, calculating the average of 100 measurement results of the first previous interpolation unit, and recording as X01Calculating the average of the 100 measurement results of the second pre-interpolation unit, and recording as X02Calculating the average of the measurement results of 100 times of the previous Nth previous interpolation unit, and recording as X0NCalculating the calibration quantity of the interpolation unit before each path,

nth front interpolation unit calibration quantity YON

Figure FDA0002272395540000013

4. A multi-channel interpolation-based time interval measurement method as claimed in claim 2 or 3, wherein the post-interpolation unit calibration procedure is:

sending the clock as the measured signal to the gate generating unit to be measured, measuring 100 time intervals, calculating the average of 100 measurement results of the first post-interpolation unit, and recording as X11Calculating the average of 100 measurements of the second post-interpolation unit, and recording as X12Calculating the average of the measurement results of 100 times of the previous Nth and the next interpolation unit, and recording as X1NCalculating the calibration quantity of the interpolation unit after each path,

nth post-interpolation N unit calibration quantity Y1N

Figure FDA0002272395540000021

Technical Field

The invention relates to the technical field of time interval measurement with high resolution, in particular to a time interval measurement device and method based on multi-channel interpolation.

Background

The time interval measurement means measuring a time difference between two event occurrence moments, and the measurement principle is as shown in fig. 1. When the time interval measurement is carried out, firstly, a gate to be measured is generated according to the starting and ending states of a signal, the signal starts to start the gate to be measured, the signal ends to close the gate to be measured, during the opening period of the gate to be measured, the clock pulse is counted in an accumulated mode, and the number of accumulated clock pulses is multiplied by the clock period, namely the time interval between the starting of the signal and the ending of the signal. The signal start and signal end may be two adjacent pulse signals of the same input signal.

Since the input measured signal is not in a synchronous relation with the counting clock signal, the method has a measurement error of 1 clock period in principle. The measurement error can be reduced by increasing the clock frequency, for example, when the measurement resolution of the tlns is required to be achieved, the clock frequency needs to be increased to 1GHz, and at this time, the requirements on timing synchronization, device performance, circuit board layout and wiring and the like are greatly increased, and the implementation is very difficult.

The time interval error correction technology is adopted, so that the time interval measurement resolution can be improved. The principle of error correction is shown in fig. 2. T is the time interval between the beginning of the signal and the end of the signal; t is0Is the time interval (i.e., the time counted by the clock) between the first clock pulse after the start of the signal and the first clock pulse after the end of the signal; t is1Is the time interval error between the start of the signal and the first clock pulse thereafter; t is2Is the time interval error between the end of the signal and the first clock pulse thereafter. On the basis of direct counting, the time interval error T is calculated1And T2The measurement with higher resolution can further improve the measurement resolution of the time interval T. The time interval to be measured is derived as shown in the following formula.

T=T0+T1-T2

To accurately measure T1And T2Development ofAn analog interpolation method and a digital interpolation method are shown. The analog interpolation method is adopted, the main measures for improving the resolution ratio are to improve the clock frequency and the expansion multiple of the analog interpolation, and on the basis of the existing mainstream analog interpolation resolution ratio, the requirements on time sequence synchronization, device performance, circuit board layout and wiring and the like can be greatly increased by improving the clock frequency, so that the realization is difficult; the analog expansion multiple is increased, and the problems of nonlinearity caused by leakage current, slow measurement speed and the like can be faced, so that the realization is difficult. By adopting a digital interpolation method, the main measure for improving the resolution is to improve the resolution of a single delay unit. On the basis of the resolution of the existing mainstream digital interpolation, the resolution of a single delay unit is further improved, and the requirements on links such as the length of a delay line, time sequence synchronization, data latching and delay calibration are very strict, so that the realization is very difficult.

Disclosure of Invention

The invention aims to solve the defects, provides a method for measuring time intervals by simultaneously measuring multi-channel interpolation and then performing average calculation, and the measurement resolution is the original resolution on the basis of not increasing the measurement time

Figure BDA0002272395550000021

The time interval measuring device and method based on multi-channel interpolation.

The invention specifically adopts the following technical scheme:

the utility model provides a time interval measuring device based on multichannel interpolation, including being surveyed gate generation unit, be connected the count unit on the gate generation unit of being surveyed, preceding error extraction unit and back error extraction unit, the count unit, same clock unit is connected to preceding error extraction unit and back error extraction unit, preceding error extraction unit connects first multichannel distribution unit, connect a plurality of preceding interpolation units on the first multichannel distribution unit, back error extraction unit connects second multichannel distribution unit, connect a plurality of back interpolation units on the second multichannel distribution unit, the count unit, preceding interpolation unit and back interpolation unit connect the arithmetic unit.

A time interval measuring method based on multi-channel interpolation, which adopts the time interval measuring device based on multi-channel interpolation as described above, and comprises the following steps:

sending a signal starting instruction and a signal stopping instruction to a tested gate generating unit to obtain a tested gate, dividing an output signal of the tested gate generating unit into three paths, and enabling the first path to enter a counting unit;

the second path enters a front error extraction unit, signals of a clock unit are sent to the front error extraction unit, a front error gate can be obtained by adopting edge triggering extraction, the signals are sent to a first multi-path distribution unit and divided into N paths, each path is subjected to interpolation processing respectively, and front error data T is obtained01,T02,T0NSending the data to an arithmetic unit;

the third path enters a back error extraction unit, simultaneously, signals of the clock unit are also sent to the back error extraction unit, an edge triggering extraction is adopted to obtain a back error gate, the back error gate is sent to a second multi-path distribution unit and divided into N paths, interpolation processing is respectively carried out on each path, and back error data T is obtained11,T12,T1NSending the data to an arithmetic unit;

the arithmetic unit calculates the time interval by adopting the formula (1),

Figure BDA0002272395550000022

wherein M is0For counting of the counting unit, TclkA clock signal period of the clock unit;

calibrating each path of interpolation unit, and after calibration, using a final operation unit for time interval calculation, wherein the calculation formula is shown as formula (2):

preferably, the first and second electrodes are formed of a metal,

the calibration process of the front interpolation unit is as follows:

sending the clock as the measured signal to the gate generating unit to be measured, measuring 100 time intervals, calculating the average of 100 measurement results of the first previous interpolation unit, and recording as X01Calculating the average of the 100 measurement results of the second pre-interpolation unit, and recording as X02Calculating the average of the measurement results of 100 times of the previous Nth previous interpolation unit, and recording as X0NCalculating the calibration quantity of each path of front interpolation unit, Nth front interpolation unit calibration quantity Y0N

Figure BDA0002272395550000031

Preferably, the post interpolation unit calibration procedure is:

sending the clock as the measured signal to the gate generating unit to be measured, measuring 100 time intervals, calculating the average of 100 measurement results of the first post-interpolation unit, and recording as X11Calculating the average of 100 measurements of the second post-interpolation unit, and recording as X12Calculating the average of the measurement results of 100 times of the previous Nth and the next interpolation unit, and recording as X1NCalculating the calibration quantity of the interpolation unit after each path,

nth post-interpolation N unit calibration quantity Y1N

The invention has the following beneficial effects:

the measuring device and the method adopt a method of multi-channel interpolation simultaneous measurement and average calculation to carry out time interval measurement, can greatly improve the time interval measurement resolution, the more the number of channels is, the higher the resolution is, on the basis of not increasing the measurement time, the measurement resolution is the original resolution

Drawings

FIG. 1 is a schematic block diagram of time interval measurement;

FIG. 2 is a block diagram of time interval measurement errors;

FIG. 3 is a block diagram of time interval measurements;

fig. 4 is a calibration block diagram.

Detailed Description

The following description of the embodiments of the present invention will be made with reference to the accompanying drawings:

with reference to fig. 3 and 4, a time interval measuring device based on multi-channel interpolation includes a measured gate generating unit, the measured gate generating unit is connected with a counting unit, a front error extracting unit and a rear error extracting unit, the counting unit, the front error extracting unit and the rear error extracting unit are connected with the same clock unit, the front error extracting unit is connected with a first multi-channel distributing unit, the first multi-channel distributing unit is connected with a plurality of front interpolation units, the rear error extracting unit is connected with a second multi-channel distributing unit, the second multi-channel distributing unit is connected with a plurality of rear interpolation units, and the counting unit, the front interpolation units and the rear interpolation units are connected with an arithmetic unit.

A time interval measuring method based on multi-channel interpolation, which adopts the time interval measuring device based on multi-channel interpolation as described above, and comprises the following steps:

sending a signal starting instruction and a signal stopping instruction to a tested gate generating unit to obtain a tested gate, namely a time interval required to be tested, dividing an output signal of the tested gate generating unit into three paths, and enabling the first path to enter a counting unit;

the second path enters a front error extraction unit, signals of a clock unit are sent to the front error extraction unit, a front error gate can be obtained by adopting edge triggering extraction, the signals are sent to a first multi-path distribution unit and divided into N paths, each path is subjected to interpolation processing respectively, and front error data T is obtained01,T02,T0NSending the data to an arithmetic unit;

the third path enters a back error extraction unit, simultaneously, signals of the clock unit are also sent to the back error extraction unit, an edge triggering extraction is adopted to obtain a back error gate, the back error gate is sent to a second multi-path distribution unit and divided into N paths, interpolation processing is respectively carried out on each path, and back error data T is obtained11,T12,T1NSending the data to an arithmetic unit;

the arithmetic unit calculates the time interval by adopting the formula (1),

wherein M is0For counting of the counting unit, TclkA clock signal period of the clock unit;

calibrating each path of interpolation unit, after calibration,

the calibration process of the front interpolation unit is as follows:

sending the clock as the measured signal to the gate generating unit to be measured, measuring 100 time intervals, calculating the average of 100 measurement results of the first previous interpolation unit, and recording as X01Calculating the average of the 100 measurement results of the second pre-interpolation unit, and recording as X02Calculating the average of the measurement results of 100 times of the previous Nth previous interpolation unit, and recording as X0NCalculating the calibration quantity of the interpolation unit before each path,

front interpolation 1 Unit calibration Y01

Figure BDA0002272395550000042

Front interpolation 2 unit calibration Y02

Figure BDA0002272395550000043

Nth front interpolation unit calibration quantity Y0N

Figure BDA0002272395550000044

The post interpolation unit calibration process is as follows:

sending the clock as the measured signal to the gate generating unit to be measured, measuring 100 time intervals, calculating the average of 100 measurement results of the first post-interpolation unit, and recording as X11Calculating the average of 100 measurements of the second post-interpolation unit, and recording as X12Calculating the average of the measurement results of 100 times of the previous Nth and the next interpolation unit, and recording as X1NCalculating the calibration quantity of the interpolation unit after each path,

post interpolation 1 Unit calibration Y11

Figure BDA0002272395550000045

Post interpolation 2 unit calibration Y02

Figure BDA0002272395550000046

Nth post-interpolation N unit calibration quantity Y1N

Figure BDA0002272395550000047

The final operation unit is used for calculating the time interval, and the calculation formula is shown as formula (2):

Figure BDA0002272395550000051

it is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.

It is to be understood that the above description is not intended to limit the present invention, and the present invention is not limited to the above examples, and those skilled in the art may make modifications, alterations, additions or substitutions within the spirit and scope of the present invention.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种可潜水型智能手表

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!