CN106770671A - Ultrasonic echo processing unit and method in a kind of ultrasonic detection device - Google Patents
Ultrasonic echo processing unit and method in a kind of ultrasonic detection device Download PDFInfo
- Publication number
- CN106770671A CN106770671A CN201611150364.3A CN201611150364A CN106770671A CN 106770671 A CN106770671 A CN 106770671A CN 201611150364 A CN201611150364 A CN 201611150364A CN 106770671 A CN106770671 A CN 106770671A
- Authority
- CN
- China
- Prior art keywords
- counter
- timing
- ultrasonic
- picosecond
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 82
- 238000012545 processing Methods 0.000 title claims abstract description 22
- 238000000034 method Methods 0.000 title abstract description 10
- 239000000523 sample Substances 0.000 claims abstract description 37
- 238000007493 shaping process Methods 0.000 claims abstract description 33
- 238000003672 processing method Methods 0.000 claims description 10
- 239000000126 substance Substances 0.000 claims description 7
- 238000001914 filtration Methods 0.000 claims description 5
- 239000000463 material Substances 0.000 abstract description 6
- 230000003321 amplification Effects 0.000 abstract description 3
- 238000003199 nucleic acid amplification method Methods 0.000 abstract description 3
- 239000008280 blood Substances 0.000 description 18
- 210000004369 blood Anatomy 0.000 description 18
- 238000005259 measurement Methods 0.000 description 10
- 238000012360 testing method Methods 0.000 description 9
- 238000000691 measurement method Methods 0.000 description 6
- 238000012850 discrimination method Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000002604 ultrasonography Methods 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 2
- 238000000502 dialysis Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000002592 echocardiography Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001631 haemodialysis Methods 0.000 description 1
- 230000000322 hemodialysis Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000000108 ultra-filtration Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N29/00—Investigating or analysing materials by the use of ultrasonic, sonic or infrasonic waves; Visualisation of the interior of objects by transmitting ultrasonic or sonic waves through the object
- G01N29/04—Analysing solids
- G01N29/07—Analysing solids by measuring propagation velocity or propagation time of acoustic waves
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N29/00—Investigating or analysing materials by the use of ultrasonic, sonic or infrasonic waves; Visualisation of the interior of objects by transmitting ultrasonic or sonic waves through the object
- G01N29/02—Analysing fluids
- G01N29/024—Analysing fluids by measuring propagation velocity or propagation time of acoustic waves
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N29/00—Investigating or analysing materials by the use of ultrasonic, sonic or infrasonic waves; Visualisation of the interior of objects by transmitting ultrasonic or sonic waves through the object
- G01N29/36—Detecting the response signal, e.g. electronic circuits specially adapted therefor
- G01N29/38—Detecting the response signal, e.g. electronic circuits specially adapted therefor by time filtering, e.g. using time gates
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N29/00—Investigating or analysing materials by the use of ultrasonic, sonic or infrasonic waves; Visualisation of the interior of objects by transmitting ultrasonic or sonic waves through the object
- G01N29/44—Processing the detected response signal, e.g. electronic circuits specially adapted therefor
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N29/00—Investigating or analysing materials by the use of ultrasonic, sonic or infrasonic waves; Visualisation of the interior of objects by transmitting ultrasonic or sonic waves through the object
- G01N29/44—Processing the detected response signal, e.g. electronic circuits specially adapted therefor
- G01N29/4409—Processing the detected response signal, e.g. electronic circuits specially adapted therefor by comparison
- G01N29/4436—Processing the detected response signal, e.g. electronic circuits specially adapted therefor by comparison with a reference signal
Landscapes
- Physics & Mathematics (AREA)
- Analytical Chemistry (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Chemical & Material Sciences (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Signal Processing (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Investigating Or Analyzing Materials By The Use Of Ultrasonic Waves (AREA)
Abstract
本发明公开了一种超声波检测装置中超声波回波处理装置及方法,包括微处理器、皮秒级计时芯片、波形整形电路、控制门电路、滤波放大电路、过零检测电路、与门电路、第一计数器、第二计数器和第三计数器;皮秒级计时芯片提供发射脉冲信号,在发射脉冲信号至超声波发射探头时启动计时,与门电路对超声波回波信号与原始发射信号进行吻合比对,在完全吻合的情况下,第二计数器输出有效信号至皮秒级计时芯片,使其停止计时,获取到计时结果,微处理器根据计时结果计算出超声波在被测物体中传播时间。本发明在获取到准确的超声回波信息的基础上计算得到超声波回波信息在被测物体中的传播时间,保证了基于超声波回波信息的物质特征检测的检测精度。
The invention discloses an ultrasonic echo processing device and method in an ultrasonic detection device, comprising a microprocessor, a picosecond timing chip, a waveform shaping circuit, a control gate circuit, a filter amplification circuit, a zero-crossing detection circuit, an AND gate circuit, The first counter, the second counter and the third counter; the picosecond-level timing chip provides the transmitted pulse signal, and starts timing when the transmitted pulse signal is sent to the ultrasonic transmitting probe, and the gate circuit compares the ultrasonic echo signal with the original transmitted signal , in the case of complete coincidence, the second counter outputs an effective signal to the picosecond-level timing chip to make it stop timing, and the timing result is obtained, and the microprocessor calculates the propagation time of the ultrasonic wave in the measured object according to the timing result. The present invention calculates and obtains the propagation time of the ultrasonic echo information in the measured object on the basis of obtaining accurate ultrasonic echo information, thereby ensuring the detection accuracy of material feature detection based on the ultrasonic echo information.
Description
技术领域technical field
本发明涉及超声波检测类仪器设备的相关技术,特别涉及一种超声波检测装置中超声波回波处理装置及方法。The invention relates to related technologies of ultrasonic testing instruments and equipment, in particular to an ultrasonic echo processing device and method in an ultrasonic testing device.
背景技术Background technique
由于超声波在不同成分构成的物质中传播的速度存在差别,所以可以利用该特性进行物质构成特征的检测,通常将超声波穿过被测物体,然后根据超声回波的信息得出被测物体的相关特征,比如超声波浓度检测、超声波探伤、超声波测距等等。超声回波的信息最重要的就是时差,即超声波从发射开始到经过物体后经接收探头探测到第一个回波止所间隔的时间差。随着被测物体种类、大小等的不同,所用超声波的频率、超声回波的时差大小和精度要求等有很大区别,比如超声波浓度检测的时差通常只有10微妙的级别,而其时间精度需要到纳秒甚至皮秒的级别,否则测量结果的可信度不高。因此如何精确获取该时间差是此类应用的技术关键所在。例如,在基于超声波的相对血容量检测时,系统采用频率2~5MHz的超声波,被测血液容器宽度约2cm,回波时差约15μs,不同浓度的血液其对应的回波时差不同,血液透析患者在透析过程中随着超滤量的不断变化,血液浓度相应改变,根据超声回波的时差信息就可以评估其总体血容量的相对变化,由于透析前后血容量的相对变化只有10%-20%,对应的回波时差总体变化则只有1.5-3μs,为了显示出即时的微小改变,因此对超声回波时差的测量需要达到纳秒甚至皮秒的级别。Due to the difference in the propagation speed of ultrasonic waves in substances composed of different components, this characteristic can be used to detect the characteristics of the material composition. Usually, the ultrasonic wave passes through the measured object, and then the correlation of the measured object is obtained according to the information of the ultrasonic echo. Features, such as ultrasonic concentration detection, ultrasonic flaw detection, ultrasonic distance measurement, etc. The most important information of the ultrasonic echo is the time difference, that is, the time difference between the time when the ultrasonic wave passes through the object and the first echo is detected by the receiving probe. Depending on the type and size of the object to be measured, the frequency of the ultrasonic wave used, the time difference of the ultrasonic echo, and the accuracy requirements are very different. For example, the time difference of the ultrasonic concentration detection is usually only 10 microseconds, and its time accuracy requires to the level of nanoseconds or even picoseconds, otherwise the reliability of the measurement results is not high. Therefore, how to accurately obtain the time difference is the technical key of this type of application. For example, in the relative blood volume detection based on ultrasound, the system uses ultrasound with a frequency of 2-5MHz, the width of the measured blood container is about 2cm, and the echo time difference is about 15μs. Different concentrations of blood correspond to different echo time differences. Hemodialysis patients During the dialysis process, with the continuous change of the ultrafiltration volume, the blood concentration changes accordingly, and the relative change of the overall blood volume can be evaluated according to the time difference information of the ultrasonic echo, because the relative change of the blood volume before and after dialysis is only 10%-20% , the corresponding overall change in echo time difference is only 1.5-3μs. In order to show immediate small changes, the measurement of ultrasonic echo time difference needs to reach the level of nanoseconds or even picoseconds.
超声回波测时精度的提高至少取决于两个基本方面,其一是测时方式的选用,其二是第一个超声回波波峰的获取。在测时方式上,传统的测时方法有循环N次测时法、锁相环测时法、单片机定时器直接测时法、脉冲计数法等,其测时精度最高只能达到100ns级别,不能满足基于超声波的相对血容量检测的要求。超声回波测时精度提高的第二个方面在于准确获取回波的第一个波峰,而准确获取回波的第一个波峰包括:既不要将干扰信号误当作第一个回波,也不要漏掉第一轮甚至第二轮回波;为了检测到回波,就需要首先对回波信号进行过零检测,通过过零比较器实现,但超声波在穿过被测物体时会发生反射或折射现象,低级别的干扰回波不可避免,因此过零检测也会将干扰信号同样当成超声回波,所以过零检测之后通常需要进行阈值判别,通过滞回比较器或其他阈值判别方法,滤除幅值过低的干扰回波;实际的超声回波由于需要起振的过程所以第一轮回波其幅度很小,很可能达不到固定设置的某个阈值,这样,阈值判别方法就常常会漏掉第一轮甚至第二轮回波,所测时差变长,声速变“慢”,例如采用2MHz的发射频率,每个回波的周期为0.5μs,那么漏掉第一轮甚至第二轮回波所对应的测量结果与总时差相当,等于无效。因此现有技术中所采用的过零检测以及阈值判别方法,还是有可能会使得测量结果出现极大偏差的情况。The improvement of ultrasonic echo time measurement accuracy depends on at least two basic aspects, one is the selection of time measurement method, and the other is the acquisition of the first ultrasonic echo peak. In terms of time measurement methods, the traditional time measurement methods include cycle N time measurement method, phase-locked loop time measurement method, single-chip timer direct time measurement method, pulse counting method, etc. The highest time measurement accuracy can only reach the 100ns level. It cannot meet the requirements of relative blood volume detection based on ultrasound. The second aspect of improving the accuracy of ultrasonic echo timing is to accurately obtain the first peak of the echo, and the accurate acquisition of the first peak of the echo includes: neither mistaking the interference signal as the first echo, nor Do not miss the first round or even the second round of echo; in order to detect the echo, it is necessary to first perform zero-crossing detection on the echo signal, which is realized by a zero-crossing comparator, but the ultrasonic wave will be reflected or Refraction phenomenon, low-level interference echo is inevitable, so the zero-crossing detection will also treat the interference signal as an ultrasonic echo, so threshold discrimination is usually required after zero-crossing detection, through hysteresis comparator or other threshold discrimination methods, filtering Except for the interference echo with too low amplitude; the actual ultrasonic echo needs the vibration process, so the first round of echo has a very small amplitude, and it is likely not to reach a fixed threshold. In this way, the threshold discrimination method is often The first round or even the second round of echoes will be missed, the measured time difference will become longer, and the sound velocity will become "slower". The measurement result corresponding to the reincarnation wave is equivalent to the total time difference, equal to invalid. Therefore, the zero-crossing detection and threshold value discrimination methods adopted in the prior art may still cause great deviations in the measurement results.
专利公开号为CN102697522A的发明专利中公开了一种在线相对血容量检测装置及其检测方法,其中在线相对血容量检测装置设置有处理器、计时器、超声波发射和接收电路、过零检测电路等,该装置是通过测定超声波在血液中的传播时间计算出相对血容量的,传播时间是该装置最重要的数据,通常只有十几个微秒,分辨率需达到10皮秒的级别,但是该发明专利检测方法中通过过零检测电路获得对计时器的停止计时信号,当超声回波中出现干扰信号时,过零检测输出的停止信号就出现偏差,而超声回波中出现干扰杂波是很常见的现象,因此检测结果可靠性明显不够。The invention patent with the patent publication number CN102697522A discloses an online relative blood volume detection device and its detection method, wherein the online relative blood volume detection device is equipped with a processor, a timer, an ultrasonic transmitting and receiving circuit, a zero-crossing detection circuit, etc. , the device calculates the relative blood volume by measuring the propagation time of ultrasonic waves in the blood. The propagation time is the most important data of the device, usually only a dozen microseconds, and the resolution needs to reach the level of 10 picoseconds, but this In the detection method of the invention patent, the stop timing signal for the timer is obtained through the zero-crossing detection circuit. When an interference signal appears in the ultrasonic echo, the stop signal output by the zero-crossing detection will deviate, and the interference clutter in the ultrasonic echo is It is a very common phenomenon, so the reliability of the test results is obviously not enough.
发明内容Contents of the invention
本发明的第一目的在于克服现有技术的缺点与不足,提供一种结构简单、成本低的超声波检测装置中超声波回波处理装置,通过该超声回波处理装置在获取到准确的超声回波信息的基础上才计算得到超声波回波信息在被测物体中的传播时间,对于具有干扰杂波或漏掉第一超声回波波峰甚至第二超声回波波峰的超声波回波信号不予采用,因此能够获取到精确的超声波在被测物体中的传播时间,保证了基于超声波回波信息的物质特征检测的检测精度。The first object of the present invention is to overcome the shortcomings and deficiencies of the prior art, to provide a simple structure, low cost ultrasonic echo processing device in the ultrasonic detection device, through which the ultrasonic echo processing device can obtain accurate ultrasonic echo The propagation time of the ultrasonic echo information in the measured object is calculated on the basis of the information, and the ultrasonic echo signal with interference clutter or missing the first ultrasonic echo peak or even the second ultrasonic echo peak is not used. Therefore, the accurate propagation time of the ultrasonic waves in the measured object can be obtained, which ensures the detection accuracy of the material feature detection based on the ultrasonic echo information.
本发明的第二目的在于克服现有技术的缺点与不足,提供一种基于上述超声波回波处理装置实现的超声波检测装置中超声波回波处理方法。The second purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and provide an ultrasonic echo processing method in an ultrasonic detection device based on the above ultrasonic echo processing device.
本发明的第一目的通过下述技术方案实现:一种超声波检测装置中超声波回波处理装置,包括微处理器、皮秒级计时芯片、波形整形电路、控制门电路、滤波放大电路、过零检测电路、与门电路、第一计数器、第二计数器和第三计数器;The first object of the present invention is achieved through the following technical solutions: an ultrasonic echo processing device in an ultrasonic detection device, including a microprocessor, a picosecond timing chip, a waveform shaping circuit, a control gate circuit, a filter amplifier circuit, a zero-crossing A detection circuit, an AND circuit, a first counter, a second counter and a third counter;
所述皮秒级计时芯片的数据IO端口连接微处理器,通过数据IO端口接收微处理发送的控制指令以及发送计时结果至微处理器;所述皮秒级计时芯片的启动计时信号输入端连接微处理器,微处理器通过启动计时信号输入端发送启动计时信号至皮秒级计时芯片,启动皮秒级计时芯片开始计时;所述皮秒级计时芯片的脉冲信号输出端连接波形整形电路的输入端,波形整形电路的输出端分别连接第一计数器的输入端和第三计数器的输入端,通过第一计数器和第三计数器分别对波形整形电路输出的脉冲信号进行计数;The data IO port of the picosecond timing chip is connected to the microprocessor, and receives the control instruction sent by the microprocessing through the data IO port and sends the timing result to the microprocessor; the start timing signal input terminal of the picosecond timing chip is connected to Microprocessor, the microprocessor sends the start timing signal to the picosecond level timing chip through the start timing signal input end, starts the picosecond level timing chip to start timing; the pulse signal output end of the picosecond level timing chip is connected to the waveform shaping circuit The input terminal and the output terminal of the waveform shaping circuit are respectively connected to the input terminal of the first counter and the input terminal of the third counter, and the pulse signals output by the waveform shaping circuit are counted by the first counter and the third counter;
所述控制门电路输入端分别连接皮秒级计时芯片的脉冲信号输出端、第一计数器的输出端以及微处理器与皮秒级计时芯片的启动计时信号输入端连接的一端;所述控制门电路的输出端通过驱动放大电路连接超声波发射探头;所述控制门电路在接收到微处理器发送的启动计时信号且第一计数器的计数未达到第一计数限值时,将皮秒级计时芯片输出的脉冲信号传送至驱动放大电路,通过驱动放大电路后发送至超声波发射探头;The input end of the control gate circuit is respectively connected to the pulse signal output end of the picosecond level timing chip, the output end of the first counter and the end connected to the start timing signal input end of the microprocessor and the picosecond level timing chip; The output end of the circuit is connected to the ultrasonic transmitting probe through the drive amplifier circuit; when the control gate circuit receives the start timing signal sent by the microprocessor and the count of the first counter does not reach the first count limit, the picosecond timing chip The output pulse signal is sent to the driving amplifier circuit, and then sent to the ultrasonic transmitting probe after passing through the driving amplifier circuit;
超声波接收探头通过滤波放大电路连接过零检测电路的输入端,过零检测电路的输出端和波形整形电路的输出端分别连接与门电路的两个输入端;The ultrasonic receiving probe is connected to the input end of the zero-crossing detection circuit through the filter amplifier circuit, and the output end of the zero-crossing detection circuit and the output end of the waveform shaping circuit are respectively connected to two input ends of the AND gate circuit;
所述与门电路的输出端连接第二计数器的输入端,通过第二计数器为与门电路输出的脉冲信号进行计数;第三计数器的输出端连接第二计数器的计数控制端,通过第三计数器的输出信号控制第二计数器停止计数;The output terminal of the AND gate circuit is connected to the input terminal of the second counter, and the pulse signal output by the AND gate circuit is counted by the second counter; the output terminal of the third counter is connected to the counting control terminal of the second counter, and the output terminal of the third counter is The output signal controls the second counter to stop counting;
所述第二计数器中最低位状态输出端连接第三计数器的计数控制端,通过第二计数器启动第三计数器开始计数;The lowest bit state output terminal in the second counter is connected to the counting control terminal of the third counter, and the third counter is started to count by the second counter;
第二计数器的输出端连接皮秒级计时芯片的停止计时信号输入端,在第二计数器计数达到第二计数限值时,皮秒级计时芯片通过停止计时信号输入端接收到停止计时信号。The output end of the second counter is connected to the stop timing signal input end of the picosecond timing chip. When the count of the second counter reaches the second count limit, the picosecond timing chip receives the stop timing signal through the stop timing signal input end.
优选的,所述滤波放大电路的输出端通过幅度采集电路连接微处理器。Preferably, the output end of the filter amplifier circuit is connected to the microprocessor through the amplitude acquisition circuit.
优选的,所述皮秒级计时芯片的型号为TDC-GP2。Preferably, the model of the picosecond timing chip is TDC-GP2.
优选的,所述微处理器为MSP430单片机。Preferably, the microprocessor is an MSP430 single-chip microcomputer.
本发明的第二目的通过下述技术方案实现:一种基于上述超声波检测装置中超声波回波处理装置实现的超声波检测装置中超声波回波处理方法,步骤如下:The second object of the present invention is achieved through the following technical solutions: an ultrasonic echo processing method in an ultrasonic detection device based on the ultrasonic echo processing device in the above-mentioned ultrasonic detection device, the steps are as follows:
S1、微处理器发送启动计时信号至控制门电路和皮秒级计时芯片,皮秒级计时芯片接收到启动计时信号后开始计时;同时皮秒级计时芯片脉冲信号输出端发送的脉冲信号通过波形整形电路整形后分别发送至第一计数器、第三计数器和与门电路;S1. The microprocessor sends the starting timing signal to the control gate circuit and the picosecond timing chip, and the picosecond timing chip starts timing after receiving the starting timing signal; at the same time, the pulse signal sent by the pulse signal output terminal of the picosecond timing chip passes through the waveform The shaping circuit sends the shaping to the first counter, the third counter and the AND gate circuit respectively;
S2、第一计数器接收到波形整形电路发送的信号后开始计数,控制门电路在接收到微处理器发送的启动计时信号且第一计数器计数未达到第一计数限值时,将皮秒级计时芯片发射的脉冲信号传送至驱动放大电路,通过驱动放大电路后发送至超声波发射探头,由超声波发射探头发射超声波信号;在第一计数器计数达到第一计数限值时,控制门电路停止将皮秒级计时芯片发送的脉冲信号传送至驱动放大电路,超声波发射探头停止发射超声波信号;S2. The first counter starts counting after receiving the signal sent by the waveform shaping circuit. When the control gate circuit receives the starting timing signal sent by the microprocessor and the counting of the first counter does not reach the first counting limit, it will count in picoseconds. The pulse signal emitted by the chip is transmitted to the driving amplifier circuit, and then sent to the ultrasonic transmitting probe through the driving amplifier circuit, and the ultrasonic transmitting probe transmits the ultrasonic signal; when the first counter counts to the first counting limit, the control gate circuit stops counting the picosecond The pulse signal sent by the first-level timing chip is sent to the driving amplifier circuit, and the ultrasonic transmitting probe stops emitting ultrasonic signals;
S3、超声波发射探头发射的超声信波号通过被测物体后,由超声波接收探头接收,超声波接收探头接收到超声波回波信号后发送至滤波放大电路,滤波放大电路进行滤波放大处理后发送至过零检测电路,过零检测电路进行过零检测后的信号发送至与门电路;S3. After the ultrasonic signal emitted by the ultrasonic transmitting probe passes through the object to be measured, it is received by the ultrasonic receiving probe. After receiving the ultrasonic echo signal, the ultrasonic receiving probe sends it to the filter amplifier circuit. Zero detection circuit, the zero-crossing detection circuit sends the signal after zero-crossing detection to the AND gate circuit;
S4、与门电路两个输入端接收到过零检测电路和波形整形电路发送的信号后,对两个输入端输入的信号进行与运算,并将运算结果发送到第二计数器,由第二计数器对与门电路输出的信号进行计数;S4. After the two input terminals of the AND gate circuit receive the signals sent by the zero-crossing detection circuit and the waveform shaping circuit, they perform an AND operation on the signals input by the two input terminals, and send the operation result to the second counter, and the second counter Count the signals output by the AND gate circuit;
S5、第二计数器开始计数后,启动第三计数器针对波形整形电路输出的信号进行计数,当第三计数器的计数达到第三计数限值时,控制第二计数器关闭,停止计数;当第二计数器在关闭前计数达到第二计数限值时,皮秒级计时芯片接收到来自于第二计数器发送停止计时信号,皮秒级计时芯片停止计时;S5. After the second counter starts counting, start the third counter to count the signal output by the waveform shaping circuit, and when the count of the third counter reaches the third count limit, control the second counter to close and stop counting; when the second counter When the count reaches the second counting limit before closing, the picosecond timing chip receives a stop timing signal from the second counter, and the picosecond timing chip stops timing;
S6、皮秒级计时芯片根据开始计时至停止计时之间的时间间隔获取到计时结果,然后将计时结果发送至微处理器,微处理器根据计时结果计算出超声波信号在被测物中的传播时间。S6. The picosecond-level timing chip obtains the timing result according to the time interval between the start of timing and the stop of timing, and then sends the timing result to the microprocessor, and the microprocessor calculates the propagation of the ultrasonic signal in the measured object according to the timing result time.
优选的,第一计数器的第一计数限值、第二计数器的第二计数限值和第三计数器的第三计数限值相同。Preferably, the first count limit of the first counter, the second count limit of the second counter and the third count limit of the third counter are the same.
优选的,第一计数器的第一计数限值比第二计数器的第二计数限值大1,比第三计数器的第三计数限值大2。Preferably, the first counting limit of the first counter is 1 greater than the second counting limit of the second counter, and 2 greater than the third counting limit of the third counter.
优选的,所述微处理器根据计时结果计算出超声波信号在被测物中的传播时间T为:Preferably, the microprocessor calculates the propagation time T of the ultrasonic signal in the object under test according to the timing result as:
T=Tc–n*Tt;T=Tc-n*Tt;
其中n为第二计数器的第二计数限值,Tc为皮秒级计时芯片获取到的计时结果,Tt为皮秒级计时芯片脉冲信号输出端输出的脉冲信号的周期。Where n is the second counting limit of the second counter, Tc is the timing result obtained by the picosecond timing chip, and Tt is the period of the pulse signal output from the pulse signal output terminal of the picosecond timing chip.
优选的,所述步骤S6中,微处理器在一定时间A内未接收到来自于皮秒级计时芯片的计时结果时,控制皮秒级计时芯片复位重新发射脉冲信号,然后回到步骤S1;Preferably, in the step S6, when the microprocessor does not receive the timing result from the picosecond timing chip within a certain period of time A, it controls the picosecond timing chip to reset and re-transmit the pulse signal, and then returns to step S1;
若在一定时间B内,微处理器还是未接收到来自于皮秒级计时芯片的计时结果,则控制皮秒级计时芯片重新发射的脉冲信号为改变相位后的脉冲信号;其中B大于A。If within a certain period of time B, the microprocessor still does not receive the timing result from the picosecond-level timing chip, then the pulse signal re-emitted by the picosecond-level timing chip is controlled to be the pulse signal after changing the phase; wherein B is greater than A.
优选的,所述超声波检测装置中超声波回波处理装置中的滤波放大电路的输出端通过幅度采集电路连接微处理器;滤波放大电路放大处理后的信号发送至幅度采集电路,幅度采集电路针对滤波放大电路放大处理后的信号进行幅度采集,并且将幅度采集得到的信号发送至微处理器,微处理器根据幅度采集电路发送的信号对被测物质的相关特性进行判别。Preferably, the output end of the filter amplifier circuit in the ultrasonic echo processing device in the ultrasonic detection device is connected to the microprocessor through the amplitude acquisition circuit; the signal amplified by the filter amplifier circuit is sent to the amplitude acquisition circuit, and the amplitude acquisition circuit is used for filtering The amplifying circuit amplifies and processes the signal for amplitude acquisition, and sends the signal obtained by the amplitude acquisition to the microprocessor, and the microprocessor judges the relevant characteristics of the measured substance according to the signal sent by the amplitude acquisition circuit.
本发明相对于现有技术具有如下的优点及效果:Compared with the prior art, the present invention has the following advantages and effects:
(1)本发明超声波回波处理装置中包括微处理器、皮秒级计时芯片、波形整形电路、控制门电路、滤波放大电路、过零检测电路、与门电路、第一计数器、第二计数器和第三计数器。本发明中采用皮秒级计时芯片进行计时,根据该芯片的计时结果获取到超声波在被测物体中的传播时间,由于该芯片的计时精度可以达到皮秒级,因此大大提高了超声波在被测物体中传播时间的计算精度。另外本发明通过超声波接收探头获取到超声波回波信号后,通过与门电路对滤波放大和过零检测后的超声波回波信号与皮秒级计时芯片发射的经过整形的脉冲信号进行与运算,以实现两路信号的吻合比对,在两路信号全部吻合的情况下,才有第二计数器控制皮秒级计时芯片停止计时。如果超声波回波信号中夹杂有干扰波形,因其波宽或间隔不能吻合而被排除,如果漏掉一个或几个回波波峰,则第二计数器将在一轮测试规定时间内未计满时即被关闭而无效,因此,无论是在正常的回波基础上多出来干扰波形还是漏掉了正常的回波,皮秒级计时芯片都不能得到停止计时信号。可见,本发明超声波在被测物中的传播时间即皮秒级计时芯片从开始计时到接收到第一个回波的时间是在获取到准确有效的时差原始数据基础上计算得到了,对于出现干扰杂波或者漏掉第一个甚至是第二个超声回波波峰的超声波回波信号,将不予采用。由于本发明对干扰杂波采取波形比对、计数和时长限定三重甄别技术将干扰予以排除,而对于幅度较小的第一个超声回波不直接设置限值,因此通过本发明既不会将干扰当做第一个超声回波波峰,也不会漏掉第一个甚至是第二个超声回波波峰的情况,大大提高超声波回波信息获取的准确性,保证了基于超声波回波信息的物质特征检测的检测精度。有效克服了现有技术中采用过零检测和阈值判别方法将干扰杂波当作第一个超声回波,或漏掉第一个超声回波波峰甚至第二个超声回波波峰而导致传播时间检测不准确的技术问题。(1) The ultrasonic echo processing device of the present invention includes a microprocessor, a picosecond timing chip, a waveform shaping circuit, a control gate circuit, a filter amplifier circuit, a zero-crossing detection circuit, an AND gate circuit, a first counter, and a second counter and a third counter. In the present invention, a picosecond-level timing chip is used for timing, and the propagation time of the ultrasonic wave in the object to be measured is obtained according to the timing result of the chip. Since the timing accuracy of the chip can reach the picosecond level, the ultrasonic wave is greatly improved. The precision with which travel times in objects are calculated. In addition, after the present invention obtains the ultrasonic echo signal through the ultrasonic receiving probe, the AND operation is performed on the ultrasonic echo signal after filtering, amplifying and zero-crossing detection and the shaped pulse signal emitted by the picosecond timing chip through an AND circuit, so as to obtain The coincidence and comparison of the two signals is realized. Only when the two signals are all consistent, the second counter controls the picosecond timing chip to stop timing. If there are interference waveforms mixed in the ultrasonic echo signal, it will be excluded because the wave width or interval cannot be matched. If one or several echo peaks are missed, the second counter will not be fully counted within the specified time of one round of testing. That is, it is turned off and is invalid. Therefore, no matter whether there is an extra interference waveform on the basis of the normal echo or a normal echo is missed, the picosecond timing chip cannot get the stop timing signal. It can be seen that the propagation time of the ultrasonic wave in the object under test of the present invention, that is, the time from the start of timing to the reception of the first echo by the picosecond timing chip, is calculated on the basis of obtaining accurate and effective time difference raw data. Interfering clutter or ultrasonic echo signals that miss the first or even the second ultrasonic echo peak will not be used. Since the present invention adopts waveform comparison, counting and time length limitation triple screening technology for interference clutter to eliminate interference, and does not directly set a limit value for the first ultrasonic echo with a smaller amplitude, so the present invention will neither Interference is regarded as the first ultrasonic echo peak, and the situation of the first or even the second ultrasonic echo peak will not be missed, which greatly improves the accuracy of ultrasonic echo information acquisition and ensures that the material based on ultrasonic echo information The detection accuracy of feature detection. It effectively overcomes the problem of using the zero-crossing detection and threshold discrimination methods in the prior art to treat the interference clutter as the first ultrasonic echo, or to miss the first ultrasonic echo peak or even the second ultrasonic echo peak, resulting in propagation time Detect inaccurate technical issues.
(2)本发明超声波回波处理装置所采用的电路,只需要在现有超声波检测装置中增加几个小型的数字电路芯片即可,因此具有结构简单和成本低的优点。(2) The circuit adopted by the ultrasonic echo processing device of the present invention only needs to add several small digital circuit chips to the existing ultrasonic detection device, so it has the advantages of simple structure and low cost.
(3)本发明中当超声波回波信号中出现干扰或漏掉一个或多个回波波峰时,由于超声波回波信号和皮秒级计时芯片发射的经过整形的脉冲信号不会完全吻合,第二计数器的计数将在未达到第二计数限值时即关闭,这种情况下皮秒级计时芯片将不能接收到来自于第二计数器发送停止计时信号。本发明中微处理器在一定时间内未接收到来自于皮秒级计时芯片的计时结果时,则控制皮秒级计时芯片复位重新发射脉冲信号,进行下一轮的检测,直到回波得到与发射脉冲完全吻合的超声波回波信号使得第二计数器计数能够达到第二计数限值为止,当微处理器未接收到来自于皮秒级计时芯片的计时结果的时间更久时,控制皮秒级计时芯片重新发射的脉冲信号为改变相位后的脉冲信号。因此本发明中皮秒级计时芯片获取到的计时结果都是在能够获取到准确有效的时差原始数据基础上得到,大大提高了超声波回波信息的物质特征检测的检测精度。(3) In the present invention, when there is interference or one or more echo peaks are missed in the ultrasonic echo signal, since the ultrasonic echo signal and the shaped pulse signal emitted by the picosecond timing chip will not completely match, the first The counting of the second counter will be closed when the second counting limit is not reached. In this case, the picosecond timing chip will not be able to receive the stop timing signal from the second counter. When the microprocessor in the present invention does not receive the timing result from the picosecond-level timing chip within a certain period of time, it controls the picosecond-level timing chip to reset and re-transmit the pulse signal to perform the next round of detection until the echo is obtained and Ultrasonic echo signals that perfectly match the transmitted pulses make the second counter count up to the second count limit. When the microprocessor does not receive the timing results from the picosecond timing chip for a longer time, control the picosecond The pulse signal re-emitted by the timing chip is the pulse signal after changing the phase. Therefore, the timing results obtained by the picosecond-level timing chip in the present invention are all obtained on the basis of accurate and effective time difference raw data, which greatly improves the detection accuracy of the material characteristic detection of ultrasonic echo information.
附图说明Description of drawings
图1是本发明超声波检测装置中超声波回波处理装置的结构图。Fig. 1 is a structural diagram of an ultrasonic echo processing device in an ultrasonic detection device of the present invention.
具体实施方式detailed description
下面结合实施例及附图对本发明作进一步详细的描述,但本发明的实施方式不限于此。The present invention will be further described in detail below in conjunction with the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.
实施例Example
本实施例公开了一种超声波检测装置中超声波回波处理装置,如图1所示,包括微处理器、皮秒级计时芯片、波形整形电路、控制门电路、滤波放大电路、过零检测电路、与门电路、第一计数器、第二计数器和第三计数器。This embodiment discloses an ultrasonic echo processing device in an ultrasonic detection device, as shown in Figure 1, including a microprocessor, a picosecond timing chip, a waveform shaping circuit, a control gate circuit, a filter amplifier circuit, and a zero-crossing detection circuit , AND gate circuit, first counter, second counter and third counter.
皮秒级计时芯片的数据IO端口连接微处理器,通过数据IO端口接收微处理发送的控制指令以及发送计时结果至微处理器;皮秒级计时芯片的启动计时信号输入端连接微处理器,微处理器通过启动计时信号输入端发送启动计时信号至皮秒级计时芯片,启动皮秒级计时芯片开始计时。本实施例中皮秒级计时芯片为TDC-GP2芯片,微处理器为MSP430单片机。TDC-GP2芯片的SPI接口包括数据IO端口,通过SPI总线连接MSP430单片机的SPI接口。TDC-GP2芯片通过SPI接口的数据输入端口接收微处理发送的控制指令,其中控制指令包括初始化设置控制指令以及TDC-GP2芯片测量模式控制指令,本实施例中微处理器控制TDC-GP2芯片工作于测量模式2,可测范围为500ns-4ms。皮秒级计时芯片的启动计时信号输入端即为START信号输入端,皮秒级计时芯片的停止计时信号输入端即为STOP信号输入端。The data IO port of the picosecond timing chip is connected to the microprocessor, and the control command sent by the microprocessor is received through the data IO port and the timing result is sent to the microprocessor; the start timing signal input terminal of the picosecond timing chip is connected to the microprocessor, The microprocessor sends the start timing signal to the picosecond timing chip through the start timing signal input terminal, and starts the picosecond timing chip to start timing. In this embodiment, the picosecond timing chip is a TDC-GP2 chip, and the microprocessor is an MSP430 single-chip microcomputer. The SPI interface of the TDC-GP2 chip includes a data IO port, which is connected to the SPI interface of the MSP430 microcontroller through the SPI bus. The TDC-GP2 chip receives the control instruction sent by the microprocessor through the data input port of the SPI interface, wherein the control instruction includes an initialization setting control instruction and a TDC-GP2 chip measurement mode control instruction. In this embodiment, the microprocessor controls the work of the TDC-GP2 chip In measurement mode 2, the measurable range is 500ns-4ms. The start timing signal input terminal of the picosecond timing chip is the START signal input terminal, and the stop timing signal input terminal of the picosecond timing chip is the STOP signal input terminal.
皮秒级计时芯片的脉冲信号输出端连接波形整形电路的输入端,波形整形电路的输出端分别连接第一计数器的输入端和第三计数器的输入端,通过第一计数器和第三计数器分别对波形整形电路输出的脉冲信号进行计数。The pulse signal output terminal of the picosecond timing chip is connected to the input terminal of the waveform shaping circuit, and the output terminals of the waveform shaping circuit are respectively connected to the input terminal of the first counter and the input terminal of the third counter, and the first counter and the third counter respectively The pulse signal output by the waveform shaping circuit is counted.
控制门电路输入端分别连接皮秒级计时芯片的脉冲信号输出端、第一计数器的输出端以及微处理器与皮秒级计时芯片的启动计时信号输入端连接的一端;控制门电路的输出端通过驱动放大电路连接超声波发射探头;控制门电路在接收到微处理器发送的启动计时信号且第一计数器的计数未达到第一计数限值时,将皮秒级计时芯片输出的脉冲信号传送至驱动放大电路,通过驱动放大电路后发送至超声波发射探头1。The input end of the control gate circuit is respectively connected to the pulse signal output end of the picosecond timing chip, the output end of the first counter, and the end connected between the microprocessor and the start timing signal input end of the picosecond timing chip; the output end of the control gate circuit Connect the ultrasonic transmitting probe through the drive amplifier circuit; when the control gate circuit receives the start timing signal sent by the microprocessor and the count of the first counter does not reach the first count limit, the pulse signal output by the picosecond timing chip is sent to The driving amplifier circuit is sent to the ultrasonic transmitting probe 1 after passing through the driving amplifier circuit.
超声波接收探头2通过滤波放大电路连接过零检测电路的输入端,过零检测电路的输出端和波形整形电路的输出端分别连接与门电路的两个输入端;其中超声波发射探头1和超声波接收探头2分别设置于被测物体3的两侧。The ultrasonic receiving probe 2 is connected to the input end of the zero-crossing detection circuit through the filter amplifier circuit, and the output end of the zero-crossing detection circuit and the output end of the waveform shaping circuit are respectively connected to the two input ends of the AND gate circuit; wherein the ultrasonic transmitting probe 1 and the ultrasonic receiving The probes 2 are respectively arranged on both sides of the measured object 3 .
与门电路的输出端连接第二计数器的输入端,通过第二计数器为与门电路输出的脉冲信号进行计数;第三计数器的输出端连接第二计数器的计数控制端,通过第三计数器的输出信号控制第二计数器停止计数;在第三计数器计数达到第三计数限值时,输出有效信号至第二计数器的计数控制端,控制第二计数器停止计数。The output end of the AND gate circuit is connected to the input end of the second counter, and the pulse signal output by the AND gate circuit is counted by the second counter; the output end of the third counter is connected to the counting control end of the second counter, and the output end of the third counter is The signal controls the second counter to stop counting; when the counting of the third counter reaches the third counting limit, an effective signal is output to the counting control terminal of the second counter to control the second counter to stop counting.
第二计数器中最低位状态输出端连接第三计数器的计数控制端,通过第二计数器启动第三计数器开始计数;当第二计数器计到一个数时,此时第二计数器最低位状态输出端输出有效信号,从而启动第三计数器开始计数,实现了通过第二计数器启动第三计数器的目的。The lowest bit state output terminal in the second counter is connected to the counting control end of the third counter, and the third counter is started to count by the second counter; when the second counter counts a number, the second counter lowest bit status output terminal outputs effective signal, thereby starting the third counter to start counting, and realizing the purpose of starting the third counter through the second counter.
第二计数器的输出端连接皮秒级计时芯片的停止计时信号输入端,在第二计数器计数达到第二计数限值时,皮秒级计时芯片通过停止计时信号输入端接收到停止计时信号。其中本实施例中第二计数器计数的第二计数限值依据与门电路接收的超声波回波信号与发射脉冲信号经过整形后的信号全部吻合情况下所获取到的计数值进行设置,保证了在与门电路接收的超声波回波信号与发射脉冲信号经过整形后的信号全部吻合情况下,第二计数器计数达到第二计数限值,从而输出有效信号至皮秒级计时芯片停止计时信号输入端。在与门电路接收的超声波回波信号与发射脉冲信号没有全部吻合的情况下,第二计数器的计数将达不到第二计数限值,此时第二计数器就不会输出有效信号至皮秒级计时芯片停止计时信号输入端,皮秒级计时芯片将接收不到停止计时信号。The output end of the second counter is connected to the stop timing signal input end of the picosecond timing chip. When the count of the second counter reaches the second count limit, the picosecond timing chip receives the stop timing signal through the stop timing signal input end. Wherein the second counting limit value of the second counter counting in this embodiment is set according to the counting value obtained under the condition that the ultrasonic echo signal received by the AND gate circuit and the signal after the transmitting pulse signal are all consistent with each other, so as to ensure that When the ultrasonic echo signal received by the AND gate circuit matches the reshaped signal of the transmitted pulse signal, the second counter counts up to the second count limit, thereby outputting a valid signal to the picosecond timing chip stop timing signal input terminal. In the case that the ultrasonic echo signal received by the AND gate circuit does not completely match the transmitted pulse signal, the count of the second counter will not reach the second count limit, and at this time the second counter will not output a valid signal to the picosecond The picosecond-level timing chip will not receive the stop timing signal.
本实施例中皮秒级计时芯片根据从微处理器器接收到的启动计时信号以及从第二计数器的输出端接收到的停止计时信号获取到计时结果,并且将计时结果通过SPI接口中的数据输出端发送至微处理器。微处理器接收到计时结果后,根据计时结果计算出超声波信号在被测物体中的传播时间,通过超声波信号在被测物体中的传播时间获取到被测物的相关特性,比如被测物是血液时,可以根据超声波信号在血液中的传播时间获取到相对血容量。In this embodiment, the picosecond timing chip obtains the timing result according to the start timing signal received from the microprocessor and the stop timing signal received from the output of the second counter, and the timing result is passed through the data in the SPI interface. The output is sent to the microprocessor. After the microprocessor receives the timing result, it calculates the propagation time of the ultrasonic signal in the measured object according to the timing result, and obtains the relevant characteristics of the measured object through the propagation time of the ultrasonic signal in the measured object. For example, the measured object is When using blood, the relative blood volume can be obtained according to the propagation time of the ultrasonic signal in the blood.
本实施例中第一计数器的第一计数限值、第二计数器的第二计数限值和第三计数器的第三计数限值相同。或者第一计数器的第一计数限值比第二计数器的第二计数限值大1,比第三计数器的第三计数限值大2。其中第一计数器的第一计数限值小于15,在本实施例中第一计数器的第一计数限值为5,第二计数器的第二计数限值为4,第三计数器的第三计数限值3。In this embodiment, the first count limit of the first counter, the second count limit of the second counter, and the third count limit of the third counter are the same. Or the first count limit of the first counter is 1 greater than the second count limit of the second counter and 2 greater than the third count limit of the third counter. Wherein the first counting limit of the first counter is less than 15, in this embodiment the first counting limit of the first counter is 5, the second counting limit of the second counter is 4, the third counting limit of the third counter value 3.
另外本实施例上述超声波回波处理装置中,滤波放大电路的输出端通过幅度采集电路连接微处理器,幅度采集电路针对滤波放大电路放大处理后的信号进行幅度采集,并且将幅度采集得到的信号发送至微处理器,微处理器根据幅度采集电路发送的信号对被测物质的相关特性进行判别。例如当被测物质是血液时,则微处理器根据幅度采集电路发送的信号判断血液中是否存在气泡,用作消除气泡影响等的处理。In addition, in the above-mentioned ultrasonic echo processing device of this embodiment, the output end of the filter amplifier circuit is connected to the microprocessor through the amplitude acquisition circuit, and the amplitude acquisition circuit performs amplitude acquisition on the signal amplified and processed by the filter amplifier circuit, and the signal obtained by the amplitude acquisition It is sent to the microprocessor, and the microprocessor judges the relevant characteristics of the measured substance according to the signal sent by the amplitude acquisition circuit. For example, when the measured substance is blood, the microprocessor judges whether there are air bubbles in the blood according to the signal sent by the amplitude acquisition circuit, which is used for processing such as eliminating the influence of air bubbles.
本实施例还公开了一种上述超声波检测装置中超声波回波处理装置实现的超声波检测装置中超声波回波处理方法,步骤如下:This embodiment also discloses an ultrasonic echo processing method in the ultrasonic detection device realized by the ultrasonic echo processing device in the above ultrasonic detection device, the steps are as follows:
S1、微处理器发送启动计时信号至控制门电路和皮秒级计时芯片,皮秒级计时芯片接收到启动计时信号后开始计时;同时皮秒级计时芯片脉冲信号输出端发送的脉冲信号通过波形整形电路整形后分别发送至第一计数器、第三计数器和与门电路。S1. The microprocessor sends the starting timing signal to the control gate circuit and the picosecond timing chip, and the picosecond timing chip starts timing after receiving the starting timing signal; at the same time, the pulse signal sent by the pulse signal output terminal of the picosecond timing chip passes through the waveform The shaping circuit sends the shaping to the first counter, the third counter and the AND gate circuit respectively.
S2、第一计数器接收到波形整形电路发送的信号后开始计数,控制门电路在接收到微处理器发送的启动计时信号且第一计数器计数未达到第一计数限值时,将皮秒级计时芯片发射的脉冲信号传送至驱动放大电路,通过驱动放大电路后发送至超声波发射探头,由超声波发射探头发射超声波信号;在第一计数器计数达到第一计数限值时,控制门电路停止将皮秒级计时芯片发射的脉冲信号传送至驱动放大电路,超声波发射探头停止发射超声波信号。S2. The first counter starts counting after receiving the signal sent by the waveform shaping circuit. When the control gate circuit receives the starting timing signal sent by the microprocessor and the counting of the first counter does not reach the first counting limit, it will count in picoseconds. The pulse signal emitted by the chip is transmitted to the driving amplifier circuit, and then sent to the ultrasonic transmitting probe through the driving amplifier circuit, and the ultrasonic transmitting probe transmits the ultrasonic signal; when the first counter counts to the first counting limit, the control gate circuit stops counting the picosecond The pulse signal emitted by the timing chip is transmitted to the drive amplifier circuit, and the ultrasonic emitting probe stops emitting ultrasonic signals.
S3、超声波发射探头发射的超声信波号通过被测物体后,由超声波接收探头接收,超声波接收探头接收到超声波回波信号后发送至滤波放大电路,滤波放大电路进行滤波放大处理后发送至过零检测电路,过零检测电路进行过零检测后的信号发送至与门电路。S3. After the ultrasonic signal emitted by the ultrasonic transmitting probe passes through the object to be measured, it is received by the ultrasonic receiving probe. After receiving the ultrasonic echo signal, the ultrasonic receiving probe sends it to the filter amplifier circuit. A zero detection circuit, the zero-crossing detection circuit sends the signal after the zero-crossing detection to the AND gate circuit.
S4、与门电路两个输入端接收到过零检测电路和波形整形电路发送的信号后,对两个输入端输入的信号进行与运算,并将运算结果发送到第二计数器,由第二计数器对与门电路输出的信号进行计数;S4. After the two input terminals of the AND gate circuit receive the signals sent by the zero-crossing detection circuit and the waveform shaping circuit, they perform an AND operation on the signals input by the two input terminals, and send the operation result to the second counter, and the second counter Count the signals output by the AND gate circuit;
S5、第二计数器开始计数后,启动第三计数器针对波形整形电路输出的信号进行计数,当第三计数器的计数达到第三计数限值时,则控制第二计数器关闭,停止计数;当第二计数器在关闭前的计数达到第二计数限值时,皮秒级计时芯片接收到来自于第二计数器发送停止计时信号,皮秒级计时芯片停止计时。S5. After the second counter starts counting, start the third counter to count the signal output by the waveform shaping circuit, and when the count of the third counter reaches the third count limit, control the second counter to close and stop counting; when the second counter When the counting of the counter before closing reaches the second counting limit, the picosecond timing chip receives a stop timing signal from the second counter, and the picosecond timing chip stops timing.
S6、皮秒级计时芯片根据开始计时至停止计时之间的时间间隔获取到计时结果,然后将计时结果发送至微处理器,微处理器根据计时结果计算出超声波信号在被测物中的传播时间。本步骤微处理器根据计时结果计算出超声波信号在被测物中的传播时间T为:S6. The picosecond-level timing chip obtains the timing result according to the time interval between the start of timing and the stop of timing, and then sends the timing result to the microprocessor, and the microprocessor calculates the propagation of the ultrasonic signal in the measured object according to the timing result time. In this step, the microprocessor calculates the propagation time T of the ultrasonic signal in the object under test according to the timing result as:
T=Tc–n*Tt;T=Tc-n*Tt;
其中n为第二计数器的第二计数限值,Tc为皮秒级计时芯片获取到的计时结果,Tt为皮秒级计时芯片脉冲信号输出端输出的脉冲信号的周期。其中超声波信号在被测物体中的传播时间T即为Tc扣除n个回波周期,也就是从启动计时信号发送到接收到超声波信号第一个回波的时间。Where n is the second counting limit of the second counter, Tc is the timing result obtained by the picosecond timing chip, and Tt is the period of the pulse signal output from the pulse signal output terminal of the picosecond timing chip. The propagation time T of the ultrasonic signal in the object under test is Tc minus n echo cycles, that is, the time from when the start timing signal is sent to when the first echo of the ultrasonic signal is received.
其中上述步骤S5中,与门电路针对两个输入端接收到过零检测电路和波形整形电路发送的信号进行与运算,即对两路信号进行吻合比对,在两路信号全部吻合的情况下,第二计数器能够正常完成计数,即在关闭前能够计数达到第二计数限值,从而触发皮秒级计时芯片停止计时。In the above step S5, the AND gate circuit performs an AND operation on the signals sent by the zero-crossing detection circuit and the waveform shaping circuit received by the two input terminals, that is, the two signals are matched and compared, and when the two signals are all matched , the second counter can normally complete counting, that is, it can count up to the second counting limit before it is turned off, thereby triggering the picosecond-level timing chip to stop timing.
本实施例中,若步骤S5中第二计数器的计数未达到第二计数限值时即停止计数时,则皮秒级计时芯片不能接收到来自于第二计数器发送停止计时信号,此时,步骤S6中微处理器在一定时间A内未接收到来自于皮秒级计时芯片的计时结果时,则控制皮秒级计时芯片复位重新发射脉冲信号;若在一定时间B内,微处理器还是未接收到来自于皮秒级计时芯片的计时结果,则说明多轮的检测均失败,此时控制皮秒级计时芯片重新发射的脉冲信号为改变相位后的脉冲信号。其中B大于A。其中A和B的值根据被测物体的超声波路径长度确定,假设测量该路径超声波传播时长理论预估值为t,则A可设定为t的3倍至5倍,B可设定为A的3倍至5倍。In this embodiment, if the counting of the second counter in step S5 does not reach the second counting limit and stops counting, then the picosecond timing chip cannot receive the stop timing signal from the second counter. At this time, the step When the microprocessor in S6 does not receive the timing result from the picosecond timing chip within a certain period of time A, it controls the picosecond timing chip to reset and retransmits the pulse signal; if within a certain period of time B, the microprocessor still fails Receiving the timing result from the picosecond timing chip means that multiple rounds of detection have failed. At this time, the pulse signal that controls the picosecond timing chip to re-emit is the pulse signal after changing the phase. where B is greater than A. The values of A and B are determined according to the length of the ultrasonic path of the measured object. Assuming that the theoretical estimated value of the ultrasonic propagation time of the measurement path is t, then A can be set to 3 times to 5 times of t, and B can be set to A 3 times to 5 times.
本实施例中的超声波回波处理方法还包括以下步骤:滤波放大电路放大处理后的信号发送至幅度采集电路,幅度采集电路针对滤波放大电路放大处理后的信号进行幅度采集,并且将幅度采集得到的信号发送至微处理器,微处理器根据幅度采集电路发送的信号对被测物质的相关特性进行判别。例如当被测物质是血液时,则微处理器根据幅度采集电路发送的信号判断血液中是否存在气泡,用作消除气泡影响等的处理。The ultrasonic echo processing method in this embodiment also includes the following steps: the signal amplified by the filter amplifier circuit is sent to the amplitude acquisition circuit, and the amplitude acquisition circuit performs amplitude acquisition on the signal amplified by the filter amplifier circuit, and the amplitude acquisition is obtained The signal is sent to the microprocessor, and the microprocessor judges the relevant characteristics of the measured substance according to the signal sent by the amplitude acquisition circuit. For example, when the measured substance is blood, the microprocessor judges whether there are air bubbles in the blood according to the signal sent by the amplitude acquisition circuit, which is used for processing such as eliminating the influence of air bubbles.
本实施例中,皮秒级计时芯片提供超声波发射探头发射所需要的脉冲信号,在接收到微处理器发送的启动计时信号后开始计时,并且由控制门电路根据启动计时信号以及第一计数器的计数结果控制皮秒级计时芯片发射的信号是否传送至超声波发射探头,由于开始时第一计数器的计数结果肯定未达到第一计数限值,因此皮秒级计时芯片在接收到启动计时信号开始计时的同时,输出的脉冲信号会通过门控制电路传送至超声波发射探头进行发射。在超声波接收探头接收到超声波回波信号后,依次进行滤波放大和过零检测后发送至与门电路,与门电路将接收到的超声波回波信号与皮秒级计时芯片发射的经过波形整形后的脉冲信号进行比对,若两路信号完全吻合,则第二计数器可以在未关闭前就计数达到第二计数限值,此时第二计数器输出有效信号至皮秒级计时芯片停止计时信号输入端,皮秒级计时芯片停止计时,并且计算出计时结果,然后传送给微处理器,微处理器根据皮秒级计时芯片的计时结果获取到超声波在被测物体中的传播时间,从而判别出被测物体的相关特性。本发明中采用皮秒级计时芯片进行计时,根据该芯片的计时结果获取到超声波在被测物体中的传播时间,由于该芯片的计时精度可以达到皮秒级,因此大大提高了超声波在被测物体中的传播时间计算精度。另外本发明通过超声波接收探头获取到超声波回波信号后,对滤波放大和过零检测后的超声波回波信号与皮秒级计时芯片发射的经过整形的脉冲信号即原始发射的脉冲信号进行比对,在两路信号全部吻合的情况下,才有第二计数器控制皮秒级计时芯片停止计时。如果超声波回波信号中夹杂有干扰波形,因其波宽或间隔不能吻合而被排除,如果漏掉一个或几个回波波峰,则第二计数器将在一轮测试规定时间内未计满被关闭而无效,因此,无论是在正常的回波基础上多出来干扰波形还是漏掉了正常的回波,皮秒级计时芯片都不能得到停止计时信号。可见,本实施例超声波在被测物中的传播时间即皮秒级计时芯片从开始计时到接收到第一个回波的时间是在获取到准确有效的时差原始数据基础上计算得到的,对于出现干扰杂波或者漏掉第一个甚至是第二个超声回波波峰的超声波回波信号,将不予采用。In this embodiment, the picosecond-level timing chip provides the pulse signal required for the ultrasonic transmitting probe to emit, and starts timing after receiving the start timing signal sent by the microprocessor, and the control gate circuit according to the start timing signal and the first counter The counting result controls whether the signal emitted by the picosecond-level timing chip is transmitted to the ultrasonic transmitting probe. Since the counting result of the first counter must not reach the first counting limit at the beginning, the picosecond-level timing chip starts counting when it receives the start timing signal At the same time, the output pulse signal will be transmitted to the ultrasonic transmitting probe through the gate control circuit for transmission. After the ultrasonic receiving probe receives the ultrasonic echo signal, it performs filter amplification and zero-crossing detection in sequence and then sends it to the AND gate circuit. If the two signals are completely consistent, the second counter can count up to the second count limit before it is closed. At this time, the second counter outputs a valid signal to the picosecond timing chip to stop the timing signal input. At the end, the picosecond-level timing chip stops timing, and calculates the timing result, and then sends it to the microprocessor. The relevant characteristics of the measured object. In the present invention, a picosecond-level timing chip is used for timing, and the propagation time of the ultrasonic wave in the object to be measured is obtained according to the timing result of the chip. Since the timing accuracy of the chip can reach the picosecond level, the ultrasonic wave is greatly improved. Accuracy of travel time calculations in objects. In addition, after the ultrasonic echo signal is obtained by the ultrasonic receiving probe, the ultrasonic echo signal after filtering, amplification and zero-crossing detection is compared with the shaped pulse signal transmitted by the picosecond timing chip, that is, the original transmitted pulse signal. , only when the two signals are all consistent, the second counter controls the picosecond timing chip to stop timing. If there are interference waveforms mixed in the ultrasonic echo signal, it will be excluded because the wave width or interval cannot be matched. Therefore, no matter whether there is an extra interference waveform on the basis of the normal echo or the normal echo is missed, the picosecond timing chip cannot get the stop timing signal. It can be seen that the propagation time of the ultrasonic waves in the object under test in this embodiment, that is, the time from the start of timing to the reception of the first echo by the picosecond-level timing chip, is calculated on the basis of obtaining accurate and effective time difference raw data. Ultrasonic echo signals with interfering clutter or missing the first or even the second ultrasonic echo peak will not be used.
由于本实施例对干扰杂波采取波形比对、计数和时长限定三重甄别技术将干扰予以排除,而对于幅度较小的第一个超声回波不直接设置限值,因此通过本实施例方法既不会将干扰当做第一个超声回波波峰,也不会漏掉第一个甚至是第二个超声回波波峰的情况,大大提高超声波回波信息获取的准确性,保证了基于超声波回波信息的物质特征检测的检测精度。有效克服了现有技术中采用过零检测和阈值判别方法将干扰杂波当作第一个超声回波,或漏掉第一个超声回波波峰甚至第二个超声回波波峰而导致传播时间检测不准确的技术问题。Since this embodiment adopts triple screening technology of waveform comparison, counting and duration limitation for interference clutter to eliminate interference, and does not directly set a limit value for the first ultrasonic echo with a small amplitude, so the method of this embodiment can It will not regard interference as the first ultrasonic echo peak, nor will it miss the first or even the second ultrasonic echo peak, which greatly improves the accuracy of ultrasonic echo information acquisition and ensures The detection accuracy of the material characteristic detection of the information. It effectively overcomes the problem of using the zero-crossing detection and threshold discrimination methods in the prior art to treat the interference clutter as the first ultrasonic echo, or to miss the first ultrasonic echo peak or even the second ultrasonic echo peak, resulting in propagation time Detect inaccurate technical issues.
上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiment is a preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the above-mentioned embodiment, and any other changes, modifications, substitutions, combinations, Simplifications should be equivalent replacement methods, and all are included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611150364.3A CN106770671B (en) | 2016-12-14 | 2016-12-14 | Ultrasonic echo processing unit and method in a kind of ultrasonic detection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611150364.3A CN106770671B (en) | 2016-12-14 | 2016-12-14 | Ultrasonic echo processing unit and method in a kind of ultrasonic detection device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106770671A true CN106770671A (en) | 2017-05-31 |
CN106770671B CN106770671B (en) | 2019-03-12 |
Family
ID=58876929
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611150364.3A Active CN106770671B (en) | 2016-12-14 | 2016-12-14 | Ultrasonic echo processing unit and method in a kind of ultrasonic detection device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106770671B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107782787A (en) * | 2017-10-20 | 2018-03-09 | 杭州电子科技大学 | A kind of ultrasonic defect detection method |
CN107966695A (en) * | 2017-09-12 | 2018-04-27 | 安徽胜佳和电子科技有限公司 | Ultrasonic signal process circuit, barrier-avoiding method, storage device and mobile terminal |
CN109186693A (en) * | 2018-08-02 | 2019-01-11 | 电子科技大学 | A kind of detection of the backscatter signal circuit of self-adapting ultrasonic |
CN110448879A (en) * | 2019-08-17 | 2019-11-15 | 南京陆加壹智能科技有限公司 | A kind of Intelligent-counting timing device and method |
CN111905174A (en) * | 2020-08-07 | 2020-11-10 | 成都威力生生物科技有限公司 | Dialysis pipeline bubble detection circuit |
CN113865528A (en) * | 2021-09-24 | 2021-12-31 | 天津理工大学 | A portable pork backfat measuring instrument and system |
CN115685211A (en) * | 2022-03-01 | 2023-02-03 | 四川科斯特自动化设备有限公司 | Phase-locked technology-based ultrasonic ranging device |
CN116256433A (en) * | 2021-12-10 | 2023-06-13 | 声科影像有限公司 | Method and system for processing beamforming data |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3410269B2 (en) * | 1995-12-21 | 2003-05-26 | 株式会社アドバンテスト | Delay time measurement method |
CN1908592A (en) * | 2005-08-03 | 2007-02-07 | 侯安亮 | Ultrasonic flowmeter and its theory and technique |
CN101644776A (en) * | 2009-07-07 | 2010-02-10 | 宁波大学 | Method for obtaining circuit delay time in ultrasonic measuring device |
CN101886939A (en) * | 2010-06-10 | 2010-11-17 | 宁波大学 | A Static Drift Suppression Model and Suppression Method of Transit-Time Ultrasonic Flowmeter |
WO2009104811A9 (en) * | 2008-02-20 | 2011-02-03 | Jfeスチール株式会社 | Ultrasonic measurement device and ultrasonic measurement method |
CN102697522A (en) * | 2012-06-01 | 2012-10-03 | 贝恩医疗设备(广州)有限公司 | On-line relative blood volume detection device and detection method |
CN104048628A (en) * | 2014-06-16 | 2014-09-17 | 山东中科普锐检测技术有限公司 | Method for accurately detecting thickness through ultrasonic wave equivalent peak value and device using method |
CN105890685A (en) * | 2016-06-28 | 2016-08-24 | 电子科技大学 | Ultrasonic flow measuring device based on accumulated phase difference |
-
2016
- 2016-12-14 CN CN201611150364.3A patent/CN106770671B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3410269B2 (en) * | 1995-12-21 | 2003-05-26 | 株式会社アドバンテスト | Delay time measurement method |
CN1908592A (en) * | 2005-08-03 | 2007-02-07 | 侯安亮 | Ultrasonic flowmeter and its theory and technique |
WO2009104811A9 (en) * | 2008-02-20 | 2011-02-03 | Jfeスチール株式会社 | Ultrasonic measurement device and ultrasonic measurement method |
CN101644776A (en) * | 2009-07-07 | 2010-02-10 | 宁波大学 | Method for obtaining circuit delay time in ultrasonic measuring device |
CN101886939A (en) * | 2010-06-10 | 2010-11-17 | 宁波大学 | A Static Drift Suppression Model and Suppression Method of Transit-Time Ultrasonic Flowmeter |
CN102697522A (en) * | 2012-06-01 | 2012-10-03 | 贝恩医疗设备(广州)有限公司 | On-line relative blood volume detection device and detection method |
CN104048628A (en) * | 2014-06-16 | 2014-09-17 | 山东中科普锐检测技术有限公司 | Method for accurately detecting thickness through ultrasonic wave equivalent peak value and device using method |
CN105890685A (en) * | 2016-06-28 | 2016-08-24 | 电子科技大学 | Ultrasonic flow measuring device based on accumulated phase difference |
Non-Patent Citations (1)
Title |
---|
李广峰等: "时差法超声波流量计的研究", 《电测与仪表》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107966695A (en) * | 2017-09-12 | 2018-04-27 | 安徽胜佳和电子科技有限公司 | Ultrasonic signal process circuit, barrier-avoiding method, storage device and mobile terminal |
CN107782787A (en) * | 2017-10-20 | 2018-03-09 | 杭州电子科技大学 | A kind of ultrasonic defect detection method |
CN109186693A (en) * | 2018-08-02 | 2019-01-11 | 电子科技大学 | A kind of detection of the backscatter signal circuit of self-adapting ultrasonic |
CN109186693B (en) * | 2018-08-02 | 2020-05-19 | 电子科技大学 | Self-adaptive ultrasonic echo signal detection circuit |
CN110448879A (en) * | 2019-08-17 | 2019-11-15 | 南京陆加壹智能科技有限公司 | A kind of Intelligent-counting timing device and method |
CN111905174A (en) * | 2020-08-07 | 2020-11-10 | 成都威力生生物科技有限公司 | Dialysis pipeline bubble detection circuit |
CN113865528A (en) * | 2021-09-24 | 2021-12-31 | 天津理工大学 | A portable pork backfat measuring instrument and system |
CN116256433A (en) * | 2021-12-10 | 2023-06-13 | 声科影像有限公司 | Method and system for processing beamforming data |
CN115685211A (en) * | 2022-03-01 | 2023-02-03 | 四川科斯特自动化设备有限公司 | Phase-locked technology-based ultrasonic ranging device |
Also Published As
Publication number | Publication date |
---|---|
CN106770671B (en) | 2019-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106770671A (en) | Ultrasonic echo processing unit and method in a kind of ultrasonic detection device | |
CN101458332B (en) | Ultrasonic ranging method and system thereof | |
CN106643843A (en) | Device and method for detecting signal circuit delay time in ultrasonic detection device | |
CN105066918A (en) | Ultrasonic underwater target thickness measuring system and thickness measuring method | |
CN106886014B (en) | Dual receive channel for pulsed lidar | |
US5671190A (en) | Method and device for measuring the distance of an object from an ultrasonic transmission/reception unit | |
CN110987102A (en) | A kind of high anti-interference and high precision gas ultrasonic flowmeter and its measurement method | |
CN109471112A (en) | An ultrasonic ranging sensor capable of resisting sound wave interference and its ranging method | |
CN106546993A (en) | A kind of range unit and distance-finding method for improving pulse type laser range accuracy | |
CN104048628B (en) | Method for accurately detecting thickness through ultrasonic wave equivalent peak value and device using method | |
US7796719B2 (en) | Signal detection apparatus and method thereof | |
CN104316775B (en) | Pulse signal cycle and dutycycle method for continuous measuring | |
EP0142733A2 (en) | Ultrasonic rangefinder | |
CN207336748U (en) | A kind of ultrasonic ranging system | |
CN105372661A (en) | Ultrasonic intelligent range finder | |
CN106679746A (en) | Ultrasonic speed measuring device and speed measuring method thereof | |
CN206740969U (en) | A kind of double reception passage of pulse lidar | |
CN103869096B (en) | Ultrasonic anemoscope range broadening method | |
CN107478717A (en) | A kind of device that methane concentration is surveyed based on ultrasonic pulse method | |
CN103115561A (en) | Cable length testing device and method | |
US20240027613A1 (en) | Object detection apparatus and object detection method | |
CN102889910B (en) | Ultrasonic flow instrument circuit system for preventing miswave interference | |
CN104777473A (en) | Detection method for ultrasonic sensor | |
CN212206222U (en) | High-interference-resistance high-precision gas ultrasonic flowmeter | |
CN111983591A (en) | Echo simulation system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |