摘要
提出了一种快速极性相关算法,该算法利用标准8位微处理器具有的按位和处理8位数据的功能,采用了查表方式计算相关值,并以二分法进行峰值搜索。在Z8671单片机(晶振7.3728MHz)上执行该算法,允许的最高采样频率为18.08kHz。如果取相关计算长度为256点,测量窗口为127点,采样后只需10ms便可以给出流体流经距离L的渡越时间,从而使以微处器为核心的相关仪,可以满足实时应用的要求。
A fast polarity correlation algorithm is presented which utilizes the functions of a standard 8-bit microprocessor to handle 8-bit data and to look up a table. The peak of the correlation function is searched by scanning and bisection method. When it is programmed on a Z8671 Single-chip microcomputer clocked at 7.3728MHz, this algorithm allows a maximum sampling frequence of 18.08kHz, and for a measurement window of 127 points with 256 integrated points, only 10ms is required after collecting data to give out the transit time over distance L. Therefore it is possible to make microprocessor-based correlator for real time applications.
出处
《北京科技大学学报》
EI
CAS
CSCD
北大核心
1991年第6期572-576,共5页
Journal of University of Science and Technology Beijing
基金
国家自然科学基金
关键词
两相流
微机
相关仪
测量
two-phase flow rate measurement, cross correlation, micropro- cessor-based cross correlator,peak searching, fast correlation algorithm