[go: up one dir, main page]

CN100573665C - Energy detection device and method - Google Patents

Energy detection device and method Download PDF

Info

Publication number
CN100573665C
CN100573665C CNB2005100691091A CN200510069109A CN100573665C CN 100573665 C CN100573665 C CN 100573665C CN B2005100691091 A CNB2005100691091 A CN B2005100691091A CN 200510069109 A CN200510069109 A CN 200510069109A CN 100573665 C CN100573665 C CN 100573665C
Authority
CN
China
Prior art keywords
value
energy detection
output
clock signal
adder
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.)
Expired - Fee Related
Application number
CNB2005100691091A
Other languages
Chinese (zh)
Other versions
CN1862660A (en
Inventor
林佩莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sunplus Technology Co Ltd
Original Assignee
Sunplus Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Sunplus Technology Co Ltd filed Critical Sunplus Technology Co Ltd
Priority to CNB2005100691091A priority Critical patent/CN100573665C/en
Publication of CN1862660A publication Critical patent/CN1862660A/en
Application granted granted Critical
Publication of CN100573665C publication Critical patent/CN100573665C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Measurement Of Unknown Time Intervals (AREA)

Abstract

The invention provides an energy detection device and method. The device and the method for energy detection of the invention can obtain a new energy detection value by subtracting a previous sampling average value and a sampling absolute value from the currently output energy detection value. The device and the method for energy detection of the invention do not need to use a memory, save the cost and provide real-time energy detection without time delay.

Description

能量侦测的装置与方法 Device and method for energy detection

技术领域 technical field

本发明是有关于一种能量侦测的装置与方法或,且特别是有关于一种无时间延迟的能量侦测的装置与方法。The present invention relates to a device and method for energy detection or, in particular, relates to a device and method for energy detection without time delay.

背景技术 Background technique

数字信号为现代各式多媒体的数据处理中的重要角色,其一的应用为属于一维信号的数字音讯。而声音信号与数字信号处理的结合,为通信领域中不可或缺的立基。Digital signals play an important role in the data processing of various modern multimedia, and one of the applications is digital audio which is a one-dimensional signal. The combination of sound signal and digital signal processing is an indispensable foundation in the field of communication.

对声音信号资料而言,资料量通常大且连续并包含了许多错误的噪声信号和干扰,为能有效地撷取正确的信号,就必需对信号正确与否进行判断。传统上是透过侦测信号能量的强弱,来决定是否进行信号的撷取。简单说,当某一时间点所侦测到的能量高于一个预先设定的能量门槛值(energy threshold),便认定下一时间点的信号能予以撷取而利用;反之,若低于此能量门槛值,则认定下一时间点的信号为噪声信号,不予撷取。而能量的侦测即以初始的输入信号,经取样器取得输入的模拟讯号(analogsignal),经离散和转为数字信号(digital signal)等步骤,再以取得的多个样本计算出某一时间间隔的能量平均值,作为能量侦测时的能量大小的辨认依据。以下简要说明习知中能量侦测的方法。For sound signal data, the amount of data is usually large and continuous and contains many false noise signals and interferences. In order to effectively retrieve the correct signal, it is necessary to judge whether the signal is correct or not. Traditionally, it is determined whether to acquire the signal by detecting the strength of the signal energy. Simply put, when the energy detected at a certain time point is higher than a preset energy threshold, it is determined that the signal at the next time point can be captured and utilized; otherwise, if it is lower than this If the energy threshold is lower, the signal at the next time point is determined to be a noise signal and will not be captured. The detection of energy is to use the initial input signal to obtain the input analog signal (analog signal) through the sampler, go through steps such as discretization and conversion into digital signal (digital signal), and then calculate a certain time with multiple samples obtained The average energy value of the interval is used as the basis for identifying the energy level during energy detection. The following is a brief description of conventional energy detection methods.

图1A、1B、1C分别绘示习知中能量侦测方法中的输入讯号样本取样示意图、能量侦测结果的输出波形示意图、以及依据能量侦测结果来撷取或处理讯号样本的输出示意图。1A, 1B, and 1C respectively illustrate a schematic diagram of sampling an input signal sample, a schematic diagram of an output waveform of an energy detection result, and a schematic diagram of an output signal sample obtained or processed according to the energy detection result in a conventional energy detection method.

请分别参考图1A、图1B、以及图1C。图1A为输入讯号样本取样示意图,其依次取样多个输入讯号样本值并取为绝对值而成。一般能量侦测的方法中,为有效和适当地估算及侦测能量值,会定义一个侦测窗口(window detetion)用以决定能量侦测时计算的标准,即定义取样时间长和取样个数作为能量侦测的依据。例如图1A所示的侦测窗口为8个取样个数时间长,图1A中绘示了依据此侦测窗口大小的第n时间区块以及第n+1时间区块中的样本取样示意图。Please refer to FIG. 1A , FIG. 1B , and FIG. 1C respectively. FIG. 1A is a schematic diagram of input signal sample sampling, which sequentially samples a plurality of input signal sample values and takes them as absolute values. In the general energy detection method, in order to estimate and detect the energy value effectively and appropriately, a detection window (window detetion) is defined to determine the calculation standard during energy detection, that is, to define the sampling time length and the number of samples As the basis for energy detection. For example, the detection window shown in FIG. 1A is 8 samples long, and FIG. 1A shows a schematic diagram of sample sampling in the nth time block and the n+1th time block according to the size of the detection window.

图1B为能量侦测结果的输出波形示意图,此能量侦测的进行是利用一个内存记存一个时间区块中的输入讯号取样资料,利用这些资料经计算求得能量值后,再依据此求得的能量值,来决定是否处理或撷取输出这些储存在内存内的取样资料。再参考图1C的依据能量侦测结果来撷取讯号样本的输出示意图。从图1A至1C中可以清处看出过程中,于第n时间区块时,样本取样的动作仍依序进行着(见图1A的第n时间区块),然而能量侦测结果的输出及依据能量侦测结果来输出的样本却都是第n-1时间区块时的数值。简言之,任一个时间区块的能量侦测,是以其前一时间区块时内存所记存的值为依据。Figure 1B is a schematic diagram of the output waveform of the energy detection result. The energy detection is carried out by using a memory to store the input signal sampling data in a time block, using these data to obtain the energy value through calculation, and then according to this calculation. The obtained energy value is used to decide whether to process or capture and output the sampled data stored in the internal memory. Referring again to FIG. 1C , the output schematic diagram of capturing signal samples according to the energy detection result. It can be clearly seen from Figures 1A to 1C that during the process, at the nth time block, the sample sampling operation is still carried out sequentially (see the nth time block in Figure 1A), but the output of the energy detection result And the samples output according to the energy detection results are all values at the n-1th time block. In short, the energy detection of any time block is based on the value stored in the memory in the previous time block.

目前能量的侦测反而要以先前时间收集的样本作为依据,使能量的侦测时间延迟,无法有效反应能量的实时侦测,并且要负担用以记存资料的内存的成本。因此,此能量的侦测的缺失包括了能量侦测的时间迟滞以及内存成本等。The current energy detection is based on the samples collected in the previous time, which delays the energy detection time, cannot effectively reflect the real-time detection of energy, and has to bear the cost of the memory used to store the data. Therefore, the lack of energy detection includes energy detection time lag and memory cost.

图2A、2B、2C分别绘示习知中另一种能量侦测方法中的输入讯号样本取样示意图、能量侦测结果的输出波形示意图、以及依据能量侦测结果来撷取或处理讯号样本的输出示意图。请分别参考图2A、图2B、以及图2C。图2A与前述的图1A相同,亦为能量侦测的输入讯号样本取样示意图,其依次取样多个输入讯号样本值并取为绝对值而成。2A, 2B, and 2C respectively show a schematic diagram of sampling input signal samples in another conventional energy detection method, a schematic diagram of output waveforms of energy detection results, and a schematic diagram of capturing or processing signal samples according to energy detection results. Output schematic. Please refer to FIG. 2A , FIG. 2B , and FIG. 2C respectively. FIG. 2A is the same as the aforementioned FIG. 1A , and is also a schematic diagram of sampling input signal samples for energy detection, which is formed by sequentially sampling a plurality of input signal sample values and taking them as absolute values.

图2B为此能量侦测结果的输出波形示意图,与前述方法中采用了内存的作法不同,此方法并未将输入讯号取样资料储存起来,而改采一个似于数字信号处理的硬件来进行累加和计算以求得上一个时间区块能量值,依据求得的能量值,来决定是否处理或撷取目前正在取样的取样资料。最后,从图2A至2C中可以看出,虽然此硬件的使用可以让取样资料的数值输入后便立刻输出之,即输入第n时间区块的数值后便立即进行输出(见图1C的输出示意图),却仍然是使用第n-1时间区块的能量侦测结果。因此,此能量侦测的方法造成能量侦测的结果与输出取样资料在时间上的延迟。Figure 2B is a schematic diagram of the output waveform of the energy detection result. Unlike the previous method that uses memory, this method does not store the input signal sampling data, but uses a hardware similar to digital signal processing for accumulation. and calculation to obtain the energy value of the last time block, and decide whether to process or retrieve the sampling data currently being sampled according to the obtained energy value. Finally, it can be seen from FIGS. 2A to 2C that although the use of this hardware allows the sampling data to be output immediately after input, that is, the value of the nth time block is immediately output (see the output of FIG. 1C Schematic diagram), but still use the energy detection result of the n-1th time block. Therefore, the energy detection method causes a time delay between the energy detection result and the output sampling data.

综上所述,传统的能量侦测的方法,一方面由于必须再外加以用来记存输入资料的内存的成本,一方面在侦测能量时因无法实时动态地计算并输出,而造成输出时间延迟的缺点,因而无法满足目前对于能量侦测的应用的快速与准确的能量侦测需求。To sum up, the traditional energy detection method, on the one hand, must add the cost of the memory used to store the input data, and on the other hand, it cannot dynamically calculate and output in real time when detecting energy, resulting in output Due to the shortcoming of time delay, it cannot meet the fast and accurate energy detection requirements of current energy detection applications.

因此,本发明提出一种的能量侦测的装置与方法,除了无需内存而节省传统中所需内存的成本外,更提供无时间延迟的能量侦测,并具有实时的动态能量侦测。Therefore, the present invention proposes a device and method for energy detection, which not only saves the cost of conventional memory but also provides energy detection without time delay and has real-time dynamic energy detection.

发明内容 Contents of the invention

本发明的目的就是在提供一种能量侦测的装置,该能量侦测的装置能用以进行能量侦测的计算,无需传统能量侦测的装置所需的外加内存而降低成本,并能进行无时间延迟的能量侦测。The purpose of the present invention is to provide a device for energy detection, which can be used for energy detection calculations, without the need for additional memory required by traditional energy detection devices to reduce costs, and can perform Energy detection without time delay.

本发明的再一目的是提供一种能量侦测的方法,该能量侦测的方法利用将输出的一能量侦测值减去一先前的取样平均值再加上一取样绝对值后,即能获得新的能量侦测值,可以有效解决传统的能量侦测的方法中只能使用先前旧值造成时间延迟的缺失。Yet another object of the present invention is to provide a method for energy detection, which uses an output energy detection value minus a previous sampled average value plus a sampled absolute value to obtain Obtaining a new energy detection value can effectively solve the lack of time delay caused by the traditional energy detection method that can only use the previous old value.

本发明的再一目的是提供一种能量侦测的方法,该能量侦测的方法利用将输出的一能量侦测值减去一前取样平均值并加上一取样绝对值后来获得周期T1的时脉讯号的下一周期能量侦测值,此外,利用另一个周期T2的时脉讯号来计算此取样平均值以提供此方法使用,因此亦能够解决传统的能量侦测的方法的时间延迟,并且取样平均值的计算更具代表性。Another object of the present invention is to provide a method of energy detection, the method of energy detection utilizes an output energy detection value minus a previous sampling average and adding a sampling absolute value to obtain the period T 1 The energy detection value of the next cycle of the clock signal. In addition, the clock signal of another cycle T2 is used to calculate the sampling average value to provide this method, so it can also solve the traditional energy detection method. Latency, and the calculation of the sampled average is more representative.

本发明提出一种能量侦测的装置,此装置包括了一绝对值取值器、一第一加法器、一第一正反器、一第二加法器以及一演算单元。此绝对值取值器依序接收多数个取样值,并对输入的这些取样值取绝对值后输出之。此第一加法器耦接至绝对值取值器,其将绝对值取值器的输出加上一第一中间计算值而输出之。而第一正反器耦接至第一加法器,其依据一第一时脉讯号,输出上述第一加法器的输出,以获得一能量侦测值,其中,第一时脉讯号的周期为T1。第二加法器耦接至第一正反器及第一加法器,其将能量侦测值减去一取样平均值,而输出第一中间计算值。演算单元耦接至绝对值取值器及第二加法器,其依据第二时脉讯号,计算在第二时脉讯号的任一周期内,所有绝对值取值器的输出的平均值,以输出前述取样平均值,其中,第二时脉讯号的周期为T2,且T2=T1*k,k为自然数。The present invention proposes an energy detection device, which includes an absolute value acquirer, a first adder, a first flip-flop, a second adder and a calculation unit. The absolute value getter receives a plurality of sampled values in sequence, and outputs the absolute value of these inputted sampled values. The first adder is coupled to the absolute value obtainer, which adds a first intermediate calculation value to the output of the absolute value obtainer and outputs it. The first flip-flop is coupled to the first adder, which outputs the output of the first adder according to a first clock signal to obtain an energy detection value, wherein the period of the first clock signal is T 1 . The second adder is coupled to the first flip-flop and the first adder, and subtracts a sampled average value from the energy detection value to output a first intermediate calculated value. The calculation unit is coupled to the absolute value getter and the second adder, and it calculates the average value of the outputs of all the absolute value getters in any cycle of the second clock signal according to the second clock signal, so as to Outputting the aforementioned sampled average value, wherein the period of the second clock signal is T 2 , and T 2 =T 1 *k, where k is a natural number.

本发明提出一种能量侦测的方法,此方法首先依据一时脉讯号,依序输入一取样值P(t),此时脉讯号的周期为T,接着,对输入的该取样值P(t)取绝对值后,输出一取样绝对值|P(t)|,此时,计算从时间t-k*T至时间t-T内,所有该些取样绝对值的总和Sum(|P(t-i*T)|)并除以k后,输出一前取样平均值,其中k为自然数,i为1到k,最后,将一能量侦测值减去上述前取样平均值并加上取样绝对值|P(t)|后,以获得时脉讯号的下一周期的能量侦测值。The present invention proposes a method for energy detection. This method firstly inputs a sampling value P(t) sequentially according to a clock signal. The period of the pulse signal is T. Then, the input sampling value P(t ) after taking the absolute value, output a sampled absolute value |P(t)|, at this time, calculate the sum of all the sampled absolute values Sum(|P(t-i*T)| ) and divided by k, output a previous sampling average value, where k is a natural number, i is 1 to k, and finally, an energy detection value is subtracted from the previous sampling average value and the sampling absolute value |P(t )| to obtain the energy detection value of the next cycle of the clock signal.

本发明提出再一种能量侦测的方法,此方法先依序读入多数个取样值,并对输入的这些取样值取绝对值后,输出多数个取样绝对值,此时,依据一第一时脉讯号,将一能量侦测值减去一取样平均值并加上目前的前述取样绝对值后,以获得第一时脉讯号的下一周期的能量侦测值,此第一时脉讯号的周期为T1,同时,依据一第二时脉讯号,计算在目前的第二时脉讯号的上一周期内,所有这些取样绝对值的总和并平均后,以输出上述取样平均值,此第二时脉讯号的周期为T2,且T2=T1*k,k为自然数。The present invention proposes another method for energy detection. This method first reads in a plurality of sampled values sequentially, and after taking the absolute values of these input sampled values, outputs a plurality of sampled absolute values. At this time, according to a first clock signal, after subtracting a sampling average value from an energy detection value and adding the current aforesaid sampling absolute value to obtain the energy detection value of the next cycle of the first clock signal, the first clock signal The period is T 1 , and at the same time, according to a second clock signal, the sum of the absolute values of all these samples in the previous cycle of the current second clock signal is calculated and averaged, so as to output the above-mentioned sample average value. The period of the second clock signal is T 2 , and T 2 =T 1 *k, where k is a natural number.

综上所述,本发明的能量侦测的装置与方法,利用将输出的能量侦测值减去一个先前的取样平均值再加上一个取样绝对值后,即能获得新的能量侦测值。本发明的能量侦测的装置与方法不仅无需使用内存而节省成本外,更提供具实时动态和无时间延迟的能量侦测。To sum up, the energy detection device and method of the present invention can obtain a new energy detection value by subtracting a previous sampling average value from the output energy detection value and adding a sampling absolute value . The energy detection device and method of the present invention not only saves cost by not using memory, but also provides energy detection with real-time dynamics and no time delay.

为让本发明的上述和其它目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附图式,作详细说明如下。In order to make the above and other objects, features and advantages of the present invention more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.

附图说明 Description of drawings

图1A绘示一种传统能量侦测的方法的输入讯号样本取样示意图;FIG. 1A is a schematic diagram of input signal sample sampling in a traditional energy detection method;

图1B绘示一种传统能量侦测的方法的能量侦测结果的输出波形示意图;FIG. 1B is a schematic diagram of an output waveform of an energy detection result of a traditional energy detection method;

图1C绘示一种传统能量侦测的方法的依据能量侦测结果来撷取或处理讯号样本的输出示意图;FIG. 1C is a schematic diagram illustrating an output of a traditional energy detection method for capturing or processing signal samples according to the energy detection result;

图2A绘示另一种传统能量侦测的方法的输入讯号样本取样示意图;FIG. 2A is a schematic diagram of input signal sample sampling in another traditional energy detection method;

图2B绘示另一种传统能量侦测的方法的能量侦测结果的输出波形示意图;FIG. 2B is a schematic diagram of an output waveform of an energy detection result of another traditional energy detection method;

图2C绘示另一种传统能量侦测的方法的依据能量侦测结果来撷取或处理讯号样本的输出示意图;FIG. 2C is a schematic diagram illustrating an output of another traditional energy detection method for capturing or processing signal samples according to the energy detection result;

图3A和图3B为电路方块图,分别绘示了依据本发明的实施例的一个能量侦测的装置;3A and FIG. 3B are circuit block diagrams, respectively depicting an energy detection device according to an embodiment of the present invention;

图4为一流程方块图,绘示本发明的一能量侦测的方法;FIG. 4 is a flow block diagram illustrating an energy detection method of the present invention;

图5为一流程方块图,绘示依据本发明的另一能量侦测的方法。FIG. 5 is a flow block diagram illustrating another energy detection method according to the present invention.

具体实施方式 Detailed ways

图3A和图3B为电路方块图,分别绘示了依据本发明的实施例的一个能量侦测的装置,以及此装置中的一个演算单元并于后详述之。参考图3A,此能量侦测的装置300包括了一个绝对值取值器301、一个第一加法器302、第一正反器303、一个第二加法器304和一个演算单元305。3A and 3B are circuit block diagrams, respectively depicting an energy detection device and a calculation unit in the device according to an embodiment of the present invention, which will be described in detail later. Referring to FIG. 3A , the energy detection device 300 includes an absolute value valuer 301 , a first adder 302 , a first flip-flop 303 , a second adder 304 and a calculation unit 305 .

首先,能量侦测的装置300中的绝对值取值器301会依序接收进来多个取样值,并对这些取样值取绝对值后,得到取样绝对值,再将取样绝对值输出至一个与绝对值取值器301电性连接的第一加法器302。此第一加法器302用来接收取样绝对值,并加上第二加法器304的输出,而第二加法器304的输出是将第一正反器303的输出减去演算单元305所计算输出的数值,第一加法器302将加总的结果输出到第一正反器303。最后,第一正反器303依据一个周期T1的时脉讯号,输出第一加法器302的输出,此输出值即为此能量侦测的装置300的能量侦测值。First, the absolute value acquirer 301 in the energy detection device 300 will sequentially receive a plurality of sampled values, and after taking the absolute value of these sampled values, obtain the sampled absolute value, and then output the sampled absolute value to a The absolute value acquirer 301 is electrically connected to the first adder 302 . The first adder 302 is used to receive the absolute value of the sample and add the output of the second adder 304, and the output of the second adder 304 is the output calculated by subtracting the output of the first flip-flop 303 from the calculation unit 305 , the first adder 302 outputs the summed result to the first flip-flop 303 . Finally, the first flip-flop 303 outputs the output of the first adder 302 according to the clock signal of a cycle T 1 , and the output value is the energy detection value of the energy detection device 300 .

其中,此第二加法器是用以将先前第一正反器303所输出的能量侦测值,来减去由演算单元305所计算而得的取样平均值,再将获得的值回授给第一加法器302。此一回授给第一加法器的数值,已经将目前装置300输出的能量侦测值减去先前时间的样本平均值,此数值传至第一加法器并加上之后输入的取样绝对值,如此一来便能提供能量侦测的装置300的下一周期能量侦测值。因此,装置300输出的能量侦测值,不但仍立刻计入新的样本绝对值、目前输出的能量侦测值、和考虑入先前样本平均的值,因而能够提供无时间延迟且实时输出下一周期的新能量侦测值。Wherein, the second adder is used to subtract the energy detection value output by the first flip-flop 303 from the sampling average value calculated by the calculation unit 305, and then feed back the obtained value to first adder 302 . The value given back to the first adder has already subtracted the sample average value of the previous time from the energy detection value output by the current device 300, and this value is passed to the first adder and then added to the absolute value of the input sample, In this way, the next cycle energy detection value of the energy detection device 300 can be provided. Therefore, the energy detection value output by the device 300 is not only immediately included in the absolute value of the new sample, the current output energy detection value, and the value taking into account the average value of the previous sample, thus providing a real-time output without time delay. Periodic new energy detection value.

接着,详细说明上述的本发明实施例中,用以计算取样平均值的演算单元305。图3B为一电路方块图,绘示图3A中的本发明实施例的演算单元305。演算单元305包括了一个第三加法器306、一个多任务器307、一个第二正反器308、一个第三正反器309、以及一个除法器310。Next, the calculation unit 305 for calculating the sampling average value in the above-mentioned embodiment of the present invention will be described in detail. FIG. 3B is a circuit block diagram illustrating the calculation unit 305 of the embodiment of the present invention shown in FIG. 3A . The calculation unit 305 includes a third adder 306 , a multiplexer 307 , a second flip-flop 308 , a third flip-flop 309 , and a divider 310 .

图3B中,演算单元305以一个电性连接至绝对值取值器301(见图3A)的,来依次接收多个取样绝对值。之后,第三加法器306将取样绝对值输出到与其电性连接的一个多任务器307。此多任务器307是用以依据一个周期T2的时脉讯号,将第三加法器306的取样绝对值与一零值二者择一输出,其作用是为当周期T2结束时,便会重置(reset)数值以再重新计算下一周期的数值。再将多任务器307连接至一个第二正反器308。其中,T2=T1*k,k为自然数。In FIG. 3B , the calculation unit 305 is electrically connected to the absolute value acquirer 301 (see FIG. 3A ) to sequentially receive a plurality of sampled absolute values. Afterwards, the third adder 306 outputs the sampled absolute value to a multiplexer 307 electrically connected thereto. The multiplexer 307 is used to select one of the absolute sampled value of the third adder 306 and a zero value to output according to the clock signal of a period T2 , and its function is to output when the period T2 ends. The value will be reset to recalculate the value for the next cycle. The multiplexer 307 is then connected to a second flip-flop 308 . Wherein, T 2 =T 1 *k, k is a natural number.

在时脉讯号的周期T2内,每一次周期T1的时脉(clock)触发后,第二正反器308将其输入端的数值送至第三加法器306,第三加法器306将新的取样绝对值加上第二正反器308送出的数值,再经多任务器307将加总后的数值送给第二正反器308,因此,数值便如此依次累加于第二正反器308中。当周期T2结束时,第二正反器308便会输出一个累加值,由第三正反器309暂存,与此同时,多任务器307取入零值(reset,数值归零)。In the period T2 of the clock signal, after the clock pulse (clock) of each period T1 is triggered, the second flip-flop 308 sends the value at its input terminal to the third adder 306, and the third adder 306 sends the new The absolute value of the sample plus the value sent by the second flip-flop 308, and then the summed value is sent to the second flip-flop 308 through the multiplexer 307, so the values are sequentially accumulated in the second flip-flop 308 in. When the period T 2 ends, the second flip-flop 308 will output an accumulated value, which is temporarily stored by the third flip-flop 309 , and at the same time, the multiplexer 307 takes in a zero value (reset, the value is reset to zero).

接着,与第二正反器308电性连接的,便会将上述的累加值,输出到与其电性连接的一个除法器310,执行累加值的除法,例如除法值为自然数k。要注意的是其中的第三正反器309也接受周期T2的时脉控制。Next, the one electrically connected to the second flip-flop 308 outputs the above-mentioned accumulated value to a divider 310 electrically connected thereto to perform division of the accumulated value, for example, the division value is a natural number k. It should be noted that the third flip-flop 309 is also controlled by the clock of period T2 .

在本发明的一实施例中,上述之除法器310可为一个移位缓存器,例如为一6位(6bit)的移位缓存器,用以提供一除法值64。In an embodiment of the present invention, the above-mentioned divider 310 may be a shift register, such as a 6-bit shift register, for providing a division value 64 .

最后,演算单元305以除法器310中执行累加值除法完后的数值予以输出,而此数值即为用以输出给图3A中第二加法器304的取样平均值。Finally, the arithmetic unit 305 outputs the value obtained by dividing the accumulated value in the divider 310 , and this value is the sampled average value output to the second adder 304 in FIG. 3A .

图4为一流程方块图,是依据本发明的一种能量侦测的方法。请参考图4。首先,分别在步骤S401和S402中,依据一个周期为T的时脉讯号依序读取一个取样值P(t),并将取样值P(t)取为绝对值后,获得一个取样绝对值|P(t)|,再输出至下一步骤。在步骤S403中,会进行一个前取样平均值的计算。计算的方式是将从时间t-k*T至时间t-T内,所有取样绝对值累加得到一个总和值Sum(|P(t-i*T)|),再除以k后,便获得所要的前取样平均值。而k为自然数,i为1到k。最后,步骤S404中,便将一个能量侦测值减去由步骤S403求得的前取样平均值,并加上取样绝对值|P(t)|后,便获得了时脉讯号的下一周期的能量侦测值。FIG. 4 is a flow block diagram of an energy detection method according to the present invention. Please refer to Figure 4. First, in steps S401 and S402 respectively, a sampled value P(t) is sequentially read according to a clock signal with a cycle T, and after the sampled value P(t) is taken as an absolute value, a sampled absolute value is obtained |P(t)|, and output to the next step. In step S403, a previous sampling average value is calculated. The calculation method is to accumulate the absolute values of all samples from time t-k*T to time t-T to obtain a sum value Sum(|P(t-i*T)|), and then divide by k to obtain the desired average value of previous samples . And k is a natural number, and i is 1 to k. Finally, in step S404, an energy detection value is subtracted from the previous sampling average obtained in step S403, and the sampling absolute value |P(t)| is added to obtain the next period of the clock signal energy detection value.

图5为一流程方块图,是依据本发明的另一种能量侦测的方法。请参考图5。首先,分别在步骤S501和步骤S502中,依序读入多个取样值,以及对这些输入的多个取样值取成绝对值后再输出。接着,步骤S503会依据一个周期T1的时脉讯号,来计算出下一周期的能量侦测值。此部份的计算是将一个能量侦测值减去一个取样平均值并加上目前的取样绝对值后,来获得所要的此周期T1时脉讯号的下一周期能量侦测值。FIG. 5 is a flow block diagram of another energy detection method according to the present invention. Please refer to Figure 5. Firstly, in step S501 and step S502 respectively, a plurality of sampled values are sequentially read in, and the inputted multiple sampled values are taken into absolute values and then output. Next, step S503 calculates the energy detection value of the next cycle according to the clock signal of one cycle T1 . The calculation in this part is to subtract a sampling average value from an energy detection value and add the current sampling absolute value to obtain the desired energy detection value of the next period of the T1 clock signal.

此时,步骤S503中计算出的下一周期能量侦测值一方面会输出供步骤S504计算使用;一方面并输出至步骤S505,以完成依本发明的一能量侦测的方法的结果。而步骤S504中,则是依据另一个周期T2的时脉讯号,计算在目前时脉讯号的上一周期内,所有多个取样绝对值的总和并平均后输出一个取样平均值,便如上所述提供给步骤S503。要注意的是,此发明的能量侦测的方法中,T2=T1*k,k为自然数。At this time, the energy detection value of the next cycle calculated in step S503 will be output for calculation and use in step S504; on the other hand, it will be output to step S505 to complete the result of an energy detection method according to the present invention. In step S504, based on the clock signal of another cycle T2 , the sum of all the absolute values of the multiple samples in the previous cycle of the current clock signal is calculated and averaged to output a sample average value, as described above The description is provided to step S503. It should be noted that in the energy detection method of this invention, T 2 =T 1 *k, k is a natural number.

综上所述,本发明的能量侦测的装置与方法,用以提供做能量侦测值的计算,因此无需外加内存而降低成本,并能进行无时间延迟的能量侦测。To sum up, the energy detection device and method of the present invention are used to calculate the energy detection value, so no additional memory is needed to reduce the cost, and energy detection without time delay can be performed.

虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明,任何熟习此技艺者,在不脱离本发明的精神和范围内,当可作些许的更动与润饰,因此本发明的保护范围当视后附的申请专利范围所界定者为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Anyone skilled in the art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, this The scope of protection of the invention shall be defined by the scope of the appended patent application.

Claims (5)

1.一种能量侦测的装置,包括:1. A device for energy detection, comprising: 一绝对值取值器,依序接收多数个取样值,并对输入的该些取样值取绝对值后输出之;An absolute value obtainer, which receives a plurality of sampled values in sequence, and outputs the absolute value of the inputted sampled values; 一第一加法器,耦接至该绝对值取值器,用以将该绝对值取值器的当前输出加上一第一中间计算值而输出之;a first adder, coupled to the absolute value obtainer, for adding a first intermediate calculation value to the current output of the absolute value obtainer; 一第一正反器,耦接至该第一加法器,用以依据一第一时脉讯号,输出该第一加法器的输出,以获得一能量侦测值,该第一时脉讯号的周期为T1a first flip-flop coupled to the first adder, for outputting the output of the first adder according to a first clock signal to obtain an energy detection value, the first clock signal The period is T 1 ; 一第二加法器,耦接至该第一正反器及该第一加法器,用以将该能量侦测值减去一取样平均值,而输出该第一中间计算值给第一加法器;以及A second adder, coupled to the first flip-flop and the first adder, is used to subtract a sampling average value from the energy detection value, and output the first intermediate calculated value to the first adder ;as well as 一演算单元,耦接至该绝对值取值器及该第二加法器,用以依据一第二时脉讯号,计算在该第二时脉讯号的任一周期内,所有该绝对值取值器的输出的平均值,以输出该取样平均值给第二加法器,该第二时脉讯号的周期为T2,且T2=T1*k,k为自然数。An arithmetic unit, coupled to the absolute value getter and the second adder, is used to calculate all the absolute value values in any period of the second clock signal according to a second clock signal The average value of the output of the device is used to output the sampled average value to the second adder, the period of the second clock signal is T 2 , and T 2 =T 1 *k, k is a natural number. 2.如权利要求1所述的能量侦测的装置,其中该演算单元包括:2. The energy detection device as claimed in claim 1, wherein the calculation unit comprises: 一第三加法器,耦接至该绝对值取值器,用以将该绝对值取值器的输出加上一第二中间计算值而输出之;A third adder, coupled to the absolute value accessor, for adding a second intermediate calculation value to the output of the absolute value accessor to output it; 一多任务器,耦接至该第三加法器,用以依据该第二时脉讯号,将该第三加法器的输出与一零值二者择一输出;a multiplexer, coupled to the third adder, for alternatively outputting the output of the third adder and a zero value according to the second clock signal; 一第二正反器,耦接至该多任务器,用以依据该第一时脉讯号,输出该多任务器的输出,以获得一第三中间计算值;a second flip-flop coupled to the multiplexer, for outputting the output of the multiplexer according to the first clock signal to obtain a third intermediate calculation value; 一第三正反器,耦接至该第二正反器,用以依据该第二时脉讯号,输出该第三中间计算值,以获得一总和值;以及a third flip-flop coupled to the second flip-flop for outputting the third intermediate calculation value according to the second clock signal to obtain a sum value; and 一除法器,耦接至该第三正反器,用以将该总和值除以k,而输出该取样平均值。A divider, coupled to the third flip-flop, is used for dividing the sum by k to output the sampled average value. 3.如权利要求1所述的能量侦测的装置,其中该演算单元的该除法器为一移位缓存器。3. The energy detection device as claimed in claim 1, wherein the divider of the calculation unit is a shift register. 4.一种能量侦测的方法,包括:4. A method for energy detection, comprising: 依据一时脉讯号,依序输入一取样值P(t),该时脉讯号的周期为T;According to a clock signal, a sampling value P(t) is sequentially input, and the period of the clock signal is T; 对输入的该取样值P(t)取绝对值后,输出一取样绝对值|P(t)|;After taking the absolute value of the input sampling value P(t), output a sampling absolute value |P(t)|; 计算从时间t-k*T至时间t-T内,所有该些取样绝对值的总和Sum(|P(t-i*T)|)并除以k后,输出一前取样平均值,其中k为自然数,i为1到k;以及Calculate the sum Sum(|P(t-i*T)|) of the absolute values of all these samples from time t-k*T to time t-T and divide by k to output a previous sample average value, where k is a natural number and i is 1 to k; and 将一能量侦测值减去该前取样平均值并加上该取样绝对值|P(t)|后,以获得该时脉讯号的下一周期的该能量侦测值。After subtracting the previous sampling average value from an energy detection value and adding the sampling absolute value |P(t)|, the energy detection value of the next cycle of the clock signal is obtained. 5.一种能量侦测的方法,包括:5. A method for energy detection, comprising: 依序读入多数个取样值,并对输入的该些取样值取绝对值后,输出多数个取样绝对值;Sequentially read in a plurality of sampling values, and after taking the absolute values of the input sampling values, output a plurality of sampling absolute values; 依据一第一时脉讯号,将一能量侦测值减去一取样平均值并加上目前的该取样绝对值后,以获得该第一时脉讯号的下一周期的该能量侦测值,该第一时脉讯号的周期为T1;以及According to a first clock signal, after subtracting a sampling average value from an energy detection value and adding the current sampling absolute value, the energy detection value of the next period of the first clock signal is obtained, The period of the first clock signal is T 1 ; and 依据一第二时脉讯号,计算在目前的该第二时脉讯号的上一周期内,所有该些取样绝对值的总和并平均后,以输出该取样平均值,该第二时脉讯号的周期为T2,且T2=T1*k,k为自然数。According to a second clock signal, calculate and average the sum of the absolute values of all the samples in the last cycle of the current second clock signal to output the sample average value, the second clock signal The period is T 2 , and T 2 =T 1 *k, where k is a natural number.
CNB2005100691091A 2005-05-10 2005-05-10 Energy detection device and method Expired - Fee Related CN100573665C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100691091A CN100573665C (en) 2005-05-10 2005-05-10 Energy detection device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100691091A CN100573665C (en) 2005-05-10 2005-05-10 Energy detection device and method

Publications (2)

Publication Number Publication Date
CN1862660A CN1862660A (en) 2006-11-15
CN100573665C true CN100573665C (en) 2009-12-23

Family

ID=37390073

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100691091A Expired - Fee Related CN100573665C (en) 2005-05-10 2005-05-10 Energy detection device and method

Country Status (1)

Country Link
CN (1) CN100573665C (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1503968A (en) * 2001-04-23 2004-06-09 艾利森电话股份有限公司 Acoustic signal bandwidth extension
CN1536559A (en) * 2003-04-10 2004-10-13 联发科技股份有限公司 Encoder and encoding method capable of detecting transient position of sound signal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1503968A (en) * 2001-04-23 2004-06-09 艾利森电话股份有限公司 Acoustic signal bandwidth extension
CN1536559A (en) * 2003-04-10 2004-10-13 联发科技股份有限公司 Encoder and encoding method capable of detecting transient position of sound signal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于声音信号形态特征参数分析的压缩编码算法. 王昆仑,张亮.第六届全国人机语音通讯学术会议. 2001 *
语音命令的简单识别方法. 朱红,陈清华.计算机时代,第11期. 2002 *

Also Published As

Publication number Publication date
CN1862660A (en) 2006-11-15

Similar Documents

Publication Publication Date Title
US7352167B2 (en) Digital trigger
US7526395B2 (en) Logic analyzer using a digital filter
JP2014077791A (en) Method of indicating correlation between multiple signals, and test measurement device
WO2020228107A1 (en) Audio repair method and device, and readable storage medium
CN104077492A (en) Sample data interpolation method based on FPGA
US20070047458A1 (en) Timestamp generator
CN100573665C (en) Energy detection device and method
JP2011069820A (en) Test and measurement instrument and method therefor
US7472025B2 (en) Energy detection apparatus and method thereof
CN108646072B (en) Trigger generating device based on Hamming distance
US10955441B2 (en) Measurement system and method for operating a measurement system
CN118157673A (en) Analog-to-digital converter (ADC) circuit and method for controlling the ADC circuit
CN110729988A (en) Circuit, output device, detection system and method for outputting clock jitter signal
TWI387320B (en) Apparatus and method for filtering image signal noise
CN111371453A (en) Signal period measurement circuit and method
US7031412B2 (en) Digital signal processing apparatus
JP4629542B2 (en) Sudden noise removal device
JP5430932B2 (en) Method and system for digital triggering of a signal based on two trigger events separated by a time interval
TWI770922B (en) Data feature augmentation system and method for low-precision neural network
KR100898567B1 (en) Method and apparatus for calculating integral value of input pulse signal
US6643171B2 (en) High dynamic range recording and playback for multilevel storage using differential sampling
CN104422804B (en) A kind of mixing oscillograph with noise suppressing function
JPH11287826A (en) Method for displaying multi-phase signal waveform
JP2005017235A (en) Pulse width measuring device and pulse width measuring method
SU1096658A1 (en) Digital instrument system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091223

Termination date: 20170510

CF01 Termination of patent right due to non-payment of annual fee