WO2023143214A1 - Signal processing method and signal processing circuit - Google Patents

Signal processing method and signal processing circuit Download PDF

Info

Publication number
WO2023143214A1
WO2023143214A1 PCT/CN2023/072480 CN2023072480W WO2023143214A1 WO 2023143214 A1 WO2023143214 A1 WO 2023143214A1 CN 2023072480 W CN2023072480 W CN 2023072480W WO 2023143214 A1 WO2023143214 A1 WO 2023143214A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
pulse
ramp
analog
signal processing
Prior art date
Application number
PCT/CN2023/072480
Other languages
French (fr)
Chinese (zh)
Inventor
杨晓风
Original Assignee
深圳市九天睿芯科技有限公司
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 深圳市九天睿芯科技有限公司 filed Critical 深圳市九天睿芯科技有限公司
Publication of WO2023143214A1 publication Critical patent/WO2023143214A1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/124Sampling or signal conditioning arrangements specially adapted for A/D converters
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/06Continuously compensating for, or preventing, undesired influence of physical parameters
    • H03M1/0617Continuously compensating for, or preventing, undesired influence of physical parameters characterised by the use of methods or means not specific to a particular type of detrimental influence

Definitions

  • the present application relates to the technical field of Internet of Things equipment and analog-to-digital converters, and in particular, to a signal processing method and a signal processing circuit.
  • the features of the analog signal are first extracted through the analog signal processing module, and the features of the extracted analog signal are transmitted to an analog-to-digital converter (analog to digital converter, ADC) for analog-to-digital conversion , and then, the analog-to-digital converter inputs the digitized features obtained after the analog-to-digital conversion to the neural network accelerator for processing, and finally obtains the recognition result.
  • ADC analog to digital converter
  • the energy intensity of analog signals in different frequency bands is a key signal characteristic of speech recognition systems or other recognition systems.
  • the method of rectifying the analog signal in the existing technical solution is to rectify the current or voltage, and output all positive-phase signals.
  • the existing rectification scheme will change the waveform of the analog signal when performing feature extraction on the analog signal, which will easily lead to signal distortion.
  • the present application provides a signal processing method and a signal processing circuit, which can ensure that the signal is not distorted when performing feature extraction on an analog signal.
  • the embodiment of the present application provides a signal processing method, including the following steps:
  • a pulse signal is output according to the comparison result.
  • the reference signal is input every first time interval, and the first time interval is A preset multiple of the duration of a single input of the reference signal, and the preset multiple is an integer greater than or equal to 1.
  • the reference signal is a ladder-shaped ramp signal, and the duration of a single input of the ramp signal is calculated as follows:
  • the number of steps of the ramp signal and the second time interval between each step are determined, and the second time interval is multiplied by the number of steps to obtain a single input duration of the ramp signal.
  • the comparing the analog signal with the reference signal includes:
  • the common-mode voltage value of the analog signal is calculated, and the voltage value of the ramp signal increases positively with the lowest value of the common-mode voltage value.
  • An embodiment of the present application provides a signal processing method, including the above-mentioned signal processing method, and further includes the following steps:
  • the pulse signal is integrated.
  • said integrating said pulse signal includes:
  • each quantized pulse width of the pulse signal is superimposed to obtain a total quantized pulse width.
  • the frequency of the clock signal is set to be at least twice the frequency of the pulse signal.
  • an embodiment of the present application provides a signal processing circuit, including a signal generator and a comparator, wherein,
  • the signal generator is used to generate a reference signal and send the reference signal to the comparator;
  • the comparator is used to receive an analog signal and a reference signal; compare the analog signal with the The reference signal is compared; the pulse signal is output according to the comparison result.
  • the signal generator is further configured to: generate a reference signal every first time interval, the first time interval is a preset multiple of a single input duration of the reference signal, and the preset The multiple is an integer greater than or equal to 1.
  • the reference signal is a stepped ramp signal
  • the signal generator is further configured to: determine the number of steps of the ramp signal and a second time interval between each step, and convert the second The second time interval is multiplied by the step number to obtain the duration of a single input of the ramp signal.
  • the comparator is also configured to output a low level when no ramp signal is detected; when an input ramp signal is detected, calculate the common-mode voltage value of the analog signal;
  • the signal generator is further configured to positively increase the voltage value of the ramp signal with the lowest value of the common mode voltage value.
  • the signal processing circuit further includes a digital integrator configured to: receive the pulse signal and integrate the pulse signal.
  • said digital integrator is also used for:
  • each quantized pulse width of the pulse signal is superimposed to obtain a total quantized pulse width.
  • the frequency of the clock signal is set to be at least twice the frequency of the pulse signal.
  • the signal processing method after receiving an analog signal and a reference signal, compares the analog signal with the reference signal, and outputs Pulse signal. It can be seen that this embodiment only compares the analog signal with the reference signal, and outputs the rectified pulse signal according to the comparison result.
  • signal instead of rectifying the negative signal of the analog signal into a positive signal or rectifying the positive signal of the analog signal into a negative signal through a half-bridge or full-bridge rectifier and analog signal processing methods such as amplification, filtering, modulation, and demodulation.
  • analog signal processing methods such as amplification, filtering, modulation, and demodulation.
  • the features of the analog signal are extracted, so that the process of rectification, integration and feature extraction of the analog signal can be completed without changing the waveform of the analog signal. Therefore, the embodiment of the present application can ensure that the signal is not distorted when performing feature extraction on the analog signal.
  • FIG. 1 is a schematic flowchart of a signal processing method provided in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a signal waveform in an application scenario of a signal processing method provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a signal waveform in another application scenario of the signal processing method provided by the embodiment of the present application;
  • FIG. 4 is a schematic structural diagram of a signal processing circuit provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a signal processing principle of a signal processing circuit provided in an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of the signal processing method provided in an embodiment of the present application.
  • the signal processing methods include:
  • S101 Receive an analog signal and a reference signal.
  • the analog signal and the reference signal may be received simultaneously, or the reference signal may be received intermittently when the analog signal is received.
  • the period of the reference signal may be set, and the reference signal may be received according to the set period.
  • the existing rectification technology scheme When the existing rectification technology scheme extracts the features of the original signal, multiple channels (generally greater than 10 channels) are required for parallel processing to extract the features of multiple frequency bands. Therefore, the existing rectification technology scheme needs multiple rectifiers, and multiple rectifiers It will take up more chip area and increase the cost, which is not conducive to the application in miniaturized and miniaturized Internet of Things devices; at the same time, the existing technical solutions use rectifiers with multiple channels to extract multi-band features, but rectifiers with different channels Due to the chip manufacturing process, there will be a mismatch between them, which will reduce the recognition rate of the neural network algorithm.
  • the reference signal is input every first time interval
  • the first time interval is a preset multiple of the duration of a single input of the reference signal
  • the preset multiple is greater than or equal to 1 an integer of .
  • the first time interval (that is, the sampling interval) is T
  • the time point of the ramp signal input is T0
  • the time point of the next ramp signal input is T0+T
  • the duration of a single input of the ramp signal is set as TR.
  • the comparator used to perform the comparison between the analog signal and the ramp signal can be chained by n channel signals Therefore, the embodiment of the present application only needs one ramp generator and one comparator to realize the rectification of L channel signals.
  • the time interval of each input of the ramp signal is set as the first time interval (ie, the sampling interval), and when the first time interval is greater than the duration of a single input of the ramp signal, the Input the time between the end time point of the ramp signal and the start time point of the next input ramp signal to receive and compare the analog signal of another channel. Therefore, this embodiment samples and rectifies multi-channel input signals (i.e., analog signals) by sharing one ramp signal generator and one comparator, without requiring multiple rectifiers, reducing chip area, and avoiding Matching problems between rectifiers.
  • the received analog signals are different types of analog signals in different application scenarios, including but not limited to voice signals, photoelectric signals, and bioelectric signals.
  • the reference signal can generally use a signal generator to set a desired type of signal. It can be understood that the waveform of the reference signal can also be a triangular wave, a sawtooth wave, a trapezoidal wave, or a stepped ramp.
  • the analog signal is compared with the reference signal to obtain a comparison result.
  • the voltage value of the analog signal when the voltage value of the analog signal is greater than the voltage value of the reference signal, it corresponds to the high level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the reference signal, it corresponds to the low level of the pulse signal. level; or, when the voltage value of the analog signal is greater than the voltage value of the reference signal, it corresponds to the low level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the reference signal, it corresponds to the pulse signal high level.
  • the reference signal is a triangle wave
  • the signal processing method includes:
  • a pulse signal is output according to the comparison result.
  • the voltage value of the analog signal when the voltage value of the analog signal is greater than the voltage value of the triangle wave, it corresponds to the high level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the triangle wave, it corresponds to the low level of the pulse signal ; Or, when the voltage value of the analog signal is greater than the voltage value of the triangular wave, the corresponding low level of the pulse signal, when the voltage value of the analog signal is less than or equal to the voltage value of the triangular wave, the corresponding high level of the pulse signal flat.
  • the reference signal is a sawtooth wave
  • the signal processing method includes:
  • a pulse signal is output according to the comparison result.
  • the voltage value of the analog signal when the voltage value of the analog signal is greater than the voltage value of the sawtooth wave, it corresponds to the high level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the sawtooth wave, it corresponds to the low level of the pulse signal. level; or, when the voltage value of the analog signal is greater than the voltage value of the sawtooth wave, it corresponds to the low level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the sawtooth wave, it corresponds to the pulse signal high level.
  • the reference signal is a stepped ramp signal
  • the signal processing method includes:
  • a pulse signal is output according to the comparison result.
  • the reference signal is a ladder-shaped ramp signal, and the duration of a single input of the ramp signal is calculated as follows:
  • the number of steps of the ramp signal and the second time interval between each step are determined, and the second time interval is multiplied by the number of steps to obtain a single input duration of the ramp signal.
  • a ramp signal generator is used to generate a stepped ramp signal.
  • the step time interval of each step of the ramp signal is set to T STEP , and the voltage difference of each step is set to V STEP , If the number of steps of the ramp signal is set to K, then the ramp generator has a total of K steps.
  • the duration of a single input of the ramp signal be TR, and the calculation formula is as follows:
  • comparing the analog signal with the reference signal includes:
  • the common mode voltage value of the analog signal is calculated, and the voltage value of the ramp signal increases positively with the lowest value of the common mode voltage value.
  • the energy intensity of the signal in different frequency bands is the key signal characteristic of the speech recognition system or other recognition systems, taking the speech recognition system as an example, when the input analog signal When it is a voice signal, in order to obtain the signal energy of different frequency bands, it is necessary to perform half-wave or full-wave rectification on the input voice signal and output a full positive-phase signal.
  • T0 is taken as the input time point of the analog signal and the ramp signal.
  • the ramp signal increases from the lowest value of the common-mode voltage value of the analog signal.
  • the analog signal and the ramp signal When the voltage value of the analog signal is greater than the voltage value of the ramp signal, a high level is output, and when the voltage value of the analog signal is less than or equal to the voltage value of the ramp signal, a low level is output. Because the ramp signal increases positively from the common mode voltage value, when the voltage value of the analog signal is less than or equal to the common mode voltage value, that is, the voltage value of the analog signal is less than or equal to the voltage value of the ramp signal, so at this time The output of the comparator is low level and there is no pulse output.
  • the Vin+ signal of the analog signal will be converted into a high-level signal corresponding to different pulse widths according to the signal amplitude. Regardless of the signal amplitude of the Vin- signal, the Vin- signal will be converted into a low-level signal, and the total output pulse width signal obtained at this time will be the amplitude integral of the full positive-phase signal.
  • FIG. 2 is a schematic diagram of a signal waveform in an application scenario of the signal processing method provided by the embodiment of the present application.
  • the specific rectification process is as follows: the rectification process starts from T0, and the ladder-shaped ramp signal increases from the common-mode voltage value of the input signal (such as an analog signal) VIN. When the voltage value of the ramp signal exceeds When the voltage value of the analog signal is changed, the voltage output by the comparator changes from high level to low level.
  • ⁇ t0 is the pulse width obtained by dividing the part where VIN is greater than the common-mode voltage value by the slope of the ramp signal during the T0 period of the input signal
  • ⁇ t2 is the pulse width obtained by dividing the part where VIN is greater than the common-mode voltage value by the ramp wave during the T2 period of the input signal. The slope of the signal gives the pulse width.
  • the input pulse signal of this program is the comparison result of the reference signal and the analog signal, which is equivalent to sampling from the analog signal, and then outputting a sampling signal, without directly changing the analog signal to output another waveform change after the analog signal.
  • this embodiment only compares the analog signal with the reference signal, and outputs the rectified pulse signal according to the comparison result, without the need for half-bridge or full-bridge rectifiers and analog signals such as amplification, filtering, modulation, and demodulation.
  • analog signals such as amplification, filtering, modulation, and demodulation.
  • the signal processing method further includes:
  • the pulse signal is integrated by a digital integration method.
  • This embodiment can complete the complete process of rectification, feature extraction and analog-to-digital conversion of the analog signal, while avoiding changing the analog signal and ensuring that the output signal is not distorted.
  • the above-mentioned integration of the pulse signal by a digital integration method includes:
  • FIG. 3 is a schematic diagram of signal waveforms in another application scenario of the signal processing method provided by the embodiment of the present application.
  • the total length of the pulse width of the pulse signal is counted as the integral working period TM.
  • the width of each pulse will be quantified by the rising edge of the clock, and the corresponding quantized pulses are respectively recorded as N1, N2, ... NH.
  • each quantized pulse width of the pulse signal is superimposed to obtain a quantized total pulse width.
  • this embodiment quantizes the pulse signal within the set integral working period TM, the longer the integral working time TM, the closer the output result is to the ideal half-wave rectifier and integrator result, and the The higher the frequency of the clock signal, the higher the quantization accuracy.
  • the present application provides various specific embodiments of setting the integral working time or setting the frequency of the clock signal on demand, and no examples are given here.
  • the frequency of the clock signal is set to be at least twice the frequency of the pulse signal.
  • the frequency of the clock signal is less than twice the frequency of the pulse signal, the digital signal obtained after integration cannot reflect the pulse signal, so the frequency of the clock signal is set to be at least twice the frequency of the pulse signal , and the frequency of the clock signal is three times, four times, or even ten times the frequency of the pulse signal, the error between the digital signal obtained after integration and the pulse signal will be multiplied, the higher the frequency of the clock signal, the quantized The higher the accuracy of the pulse signal.
  • the present application also provides a signal processing circuit, please refer to FIG. 4 , which is a schematic structural diagram of the signal processing circuit provided by the embodiment of the present application.
  • the signal processing circuit includes a signal generator 201 and a comparator 202 , wherein the signal generator 201 is used to generate a reference signal and send the reference signal to the comparator 202 .
  • the comparator 202 is used for receiving an analog signal and a reference signal; comparing the analog signal with the reference signal; and outputting a pulse signal according to the comparison result.
  • the voltage value of the analog signal when the voltage value of the analog signal is greater than the voltage value of the reference signal, it corresponds to the high level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the reference signal, it corresponds to the low level of the pulse signal. level; or, when the voltage value of the analog signal is greater than the voltage value of the reference signal, it corresponds to the low level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the reference signal, the The high level of the signal should be pulsed.
  • the signal generator 201 is also used for:
  • the reference signal is generated every first time interval, and the first time interval is a preset multiple of a single input duration of the reference signal, and the preset multiple is an integer greater than or equal to 1.
  • the time interval of each input of the ramp signal is set as the first time interval (ie, the sampling interval), and when the first time interval is greater than the duration of a single input of the ramp signal, the Input the time between the end time point of the ramp signal and the start time point of the next input ramp signal to receive and compare the analog signal of another channel. Therefore, this embodiment samples and rectifies multi-channel input signals (i.e., analog signals) by sharing one ramp signal generator 201 and one comparator 202, without requiring multiple rectifiers, reducing chip area, and avoiding A matching problem arises between the rectifiers of the channels.
  • the first time interval ie, the sampling interval
  • the reference signal generated by the signal generator 201 is a stepped ramp signal, and the signal generator 201 is also used for:
  • the number of steps of the ramp signal and the second time interval between each step are determined, and the second time interval is multiplied by the number of steps to obtain a single input duration of the ramp signal.
  • a ramp signal generator is used to generate a stepped ramp signal.
  • the step time interval of each step of the ramp signal is set to T STEP , and the voltage difference of each step is set to V STEP , If the number of steps of the ramp signal is set to K, then the ramp generator has a total of K steps.
  • the duration of a single input of the ramp signal be TR, and the calculation formula is as follows:
  • the comparator 202 is also used to output a low level when no ramp signal is detected; and to calculate the common-mode voltage of the analog signal when an input ramp signal is detected value;
  • the signal generator 201 is further configured to positively increase the voltage value of the ramp signal with the lowest value of the common mode voltage value.
  • the energy intensity of signals in different frequency bands is a key signal feature of a speech recognition system or other recognition systems, taking a speech recognition system as an example, when the input analog signal is a speech signal, in order to obtain signals of different frequency bands Energy, it is necessary to perform half-wave or full-wave rectification on the input voice signal and output a full positive phase signal.
  • FIG. 4 is a schematic structural diagram of a signal processing circuit provided by an embodiment of the present application.
  • the signal processing circuit includes a signal generator 201, a comparator 202 and a digital integrator 203, wherein,
  • the signal generator 201 is used to generate a reference signal and send the reference signal to the comparator 202;
  • the comparator 202 is used to receive an analog signal and a reference signal; compare the analog signal with the reference signal; output a pulse signal according to the comparison result;
  • the digital integrator 203 is used for receiving the pulse signal and integrating the pulse signal.
  • This embodiment can complete the complete process of rectification, feature extraction and analog-to-digital conversion of the analog signal, while avoiding changing the analog signal and ensuring that the output signal is not distorted.
  • FIG. 5 is a schematic diagram of a signal processing principle of a signal processing circuit provided in an embodiment of the present application.
  • the signal generator 201 generates a reference signal V RAMP , and the reference signal V RAMP and the analog signal V IN are input to the comparator 202 ; the reference signal V RAMP and the analog signal V IN are input to the comparator 202 After the comparison, a pulse signal is output according to the comparison result; the pulse signal and the clock signal are input to the digital integrator 203; the pulse signal is integrated by the digital integrator 203 to obtain a digital signal and finally output the digital signal.
  • the digital integrator 203 is also used for:
  • each quantized pulse width of the pulse signal is superimposed to obtain a quantized total pulse width.
  • this embodiment quantizes the pulse signal within the set integral working period TM, the longer the integral working time TM, the closer the output result is to the ideal half-wave rectifier and integrator result, and the The higher the frequency of the clock signal, the higher the quantization accuracy.
  • the present application provides various specific embodiments of setting the integral working time or setting the frequency of the clock signal on demand, and no examples are given here.
  • the frequency of the clock signal is set to be at least twice the frequency of the pulse signal.
  • the frequency of the clock signal is less than twice the frequency of the pulse signal, the digital signal obtained after integration cannot reflect the pulse signal, so the frequency of the clock signal is set to be at least twice the frequency of the pulse signal , and the frequency of the clock signal is three times, four times, or even ten times the frequency of the pulse signal, the error between the digital signal obtained after integration and the pulse signal will be multiplied, the higher the frequency of the clock signal, the quantized The higher the accuracy of the pulse signal.
  • each part of the present application may be realized by hardware, software, firmware or a combination thereof.
  • various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGA), Field Programmable Gate Array (FPGA), etc.
  • each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
  • the storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

The present invention discloses a signal processing method and a signal processing circuit. The signal processing method comprises the following steps: receiving an analog signal and a reference signal; comparing the analog signal with the reference signal; and outputting a pulse signal according to a comparison result. The present application can ensure that a signal is not distorted when an analog signal is subjected to feature extraction.

Description

一种信号处理方法及信号处理电路A signal processing method and signal processing circuit
本申请要求于2022年01月26日提交中国专利局、申请号为202210098229.8、发明名称为“一种信号处理方法及信号处理电路”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202210098229.8 and the title of the invention "a signal processing method and signal processing circuit" submitted to the China Patent Office on January 26, 2022, the entire contents of which are incorporated herein by reference. Applying.
技术领域technical field
本申请涉及物联网设备及模数转换器技术领域,尤其是涉及一种信号处理方法及信号处理电路。The present application relates to the technical field of Internet of Things equipment and analog-to-digital converters, and in particular, to a signal processing method and a signal processing circuit.
背景技术Background technique
在物联网应用场景中,无论是可穿戴设备、智能家居设备还是传感器,都对低功耗特性具有强烈的需求。其中,在语音识别系统或其它识别系统中,首先通过模拟信号处理模块把模拟信号的特征提取出来,将提取的模拟信号的特征传输给模数转换器(analog todigital converter,ADC)进行模数转换,然后,模数转换器将模数转换后得到的数字化特征输入到神经网络加速器进行处理,最终得到识别结果。特别地,模拟信号在不同频段的能量强度是语音识别系统或其它识别系统的关键信号特征。为了得到不同频段的信号的能量强度,通常需要对模拟信号进行半波或全波整流、积分和量化。现有的技术方案对模拟信号进行整流的方法是对电流或电压进行整流,输出全正相信号。现有的整流方案对模拟信号进行特征提取时会改变模拟信号的波形,容易导致信号失真。In the application scenarios of the Internet of Things, whether it is wearable devices, smart home devices or sensors, there is a strong demand for low power consumption. Among them, in the speech recognition system or other recognition systems, the features of the analog signal are first extracted through the analog signal processing module, and the features of the extracted analog signal are transmitted to an analog-to-digital converter (analog to digital converter, ADC) for analog-to-digital conversion , and then, the analog-to-digital converter inputs the digitized features obtained after the analog-to-digital conversion to the neural network accelerator for processing, and finally obtains the recognition result. In particular, the energy intensity of analog signals in different frequency bands is a key signal characteristic of speech recognition systems or other recognition systems. In order to obtain the energy intensity of signals in different frequency bands, it is usually necessary to perform half-wave or full-wave rectification, integration and quantization on the analog signal. The method of rectifying the analog signal in the existing technical solution is to rectify the current or voltage, and output all positive-phase signals. The existing rectification scheme will change the waveform of the analog signal when performing feature extraction on the analog signal, which will easily lead to signal distortion.
发明内容Contents of the invention
针对上述技术问题,本申请提供了一种信号处理方法及信号处理电路,能够实现在对模拟信号进行特征提取时保证信号不失真。In view of the above technical problems, the present application provides a signal processing method and a signal processing circuit, which can ensure that the signal is not distorted when performing feature extraction on an analog signal.
本申请实施例提供了一种信号处理方法,包括如下步骤:The embodiment of the present application provides a signal processing method, including the following steps:
接收模拟信号和参考信号;Receive analog signals and reference signals;
将所述模拟信号与所述参考信号进行比较;comparing the analog signal with the reference signal;
根据比较结果输出脉冲信号。A pulse signal is output according to the comparison result.
可选地,每隔第一时间间隔输入一次参考信号,所述第一时间间隔为 所述参考信号单次输入持续时长的预设倍数,所述预设倍数为大于或等于1的整数。Optionally, the reference signal is input every first time interval, and the first time interval is A preset multiple of the duration of a single input of the reference signal, and the preset multiple is an integer greater than or equal to 1.
可选地,所述参考信号为阶梯形的斜波信号,所述斜波信号的单次输入持续时长按照如下方式计算得到:Optionally, the reference signal is a ladder-shaped ramp signal, and the duration of a single input of the ramp signal is calculated as follows:
确定所述斜波信号的阶梯数以及每个阶梯之间的第二时间间隔,将所述第二时间间隔与所述阶梯数相乘,得到所述斜波信号的单次输入持续时长。The number of steps of the ramp signal and the second time interval between each step are determined, and the second time interval is multiplied by the number of steps to obtain a single input duration of the ramp signal.
可选地,所述将所述模拟信号与所述参考信号进行比较包括:Optionally, the comparing the analog signal with the reference signal includes:
当检测未输入斜波信号时,输出低电平;When no ramp signal is detected, output low level;
当检测到输入斜波信号时,计算所述模拟信号的共模电压值,所述斜波信号的电压值以所述共模电压值为最低值正向增大。When the input ramp signal is detected, the common-mode voltage value of the analog signal is calculated, and the voltage value of the ramp signal increases positively with the lowest value of the common-mode voltage value.
本申请实施例提供了一种信号处理方法,包括如上所述的信号处理方法,还包括以下步骤:An embodiment of the present application provides a signal processing method, including the above-mentioned signal processing method, and further includes the following steps:
对所述脉冲信号进行积分。The pulse signal is integrated.
可选地,所述对所述脉冲信号进行积分包括:Optionally, said integrating said pulse signal includes:
设定积分工作时段;Set the integral working hours;
接收所述脉冲信号和时钟信号;receiving the pulse signal and clock signal;
利用所述时钟信号的脉冲上升沿,将所述脉冲信号的脉冲个数量化成数字信号;Using the pulse rising edge of the clock signal, quantizing the pulse number of the pulse signal into a digital signal;
输出所述数字信号。output the digital signal.
可选地,在所述积分工作时段内,将所述脉冲信号量化后的每一脉冲宽度进行叠加,得到量化后的总脉冲宽度。Optionally, within the integration working period, each quantized pulse width of the pulse signal is superimposed to obtain a total quantized pulse width.
可选地,所述时钟信号的频率设定至少为所述脉冲信号的频率的两倍。Optionally, the frequency of the clock signal is set to be at least twice the frequency of the pulse signal.
此外,本申请实施例提供了一种信号处理电路,包括信号发生器和比较器,其中,In addition, an embodiment of the present application provides a signal processing circuit, including a signal generator and a comparator, wherein,
所述信号发生器,用于产生参考信号并向所述比较器发送所述参考信号;The signal generator is used to generate a reference signal and send the reference signal to the comparator;
所述比较器,用于接收模拟信号和参考信号;将所述模拟信号与所述 参考信号进行比较;根据比较结果输出脉冲信号。The comparator is used to receive an analog signal and a reference signal; compare the analog signal with the The reference signal is compared; the pulse signal is output according to the comparison result.
可选地,所述信号发生器,还用于:每隔第一时间间隔产生一次参考信号,所述第一时间间隔为所述参考信号单次输入持续时长的预设倍数,所述预设倍数为大于或等于1的整数。Optionally, the signal generator is further configured to: generate a reference signal every first time interval, the first time interval is a preset multiple of a single input duration of the reference signal, and the preset The multiple is an integer greater than or equal to 1.
可选地,所述参考信号为阶梯形的斜波信号,所述信号发生器还用于:确定所述斜波信号的阶梯数以及每个阶梯之间的第二时间间隔,将所述第二时间间隔与所述阶梯数相乘,得到所述斜波信号的单次输入持续时长。Optionally, the reference signal is a stepped ramp signal, and the signal generator is further configured to: determine the number of steps of the ramp signal and a second time interval between each step, and convert the second The second time interval is multiplied by the step number to obtain the duration of a single input of the ramp signal.
可选地,所述比较器,还用于当检测未输入斜波信号时,输出低电平;当检测到输入斜波信号时,计算所述模拟信号的共模电压值;Optionally, the comparator is also configured to output a low level when no ramp signal is detected; when an input ramp signal is detected, calculate the common-mode voltage value of the analog signal;
所述信号发生器,还用于以所述共模电压值为最低值正向增大所述斜波信号的电压值。The signal generator is further configured to positively increase the voltage value of the ramp signal with the lowest value of the common mode voltage value.
可选地,所述的信号处理电路,还包括数字积分器,所述数字积分器用于:接收所述脉冲信号,并对所述脉冲信号进行积分。Optionally, the signal processing circuit further includes a digital integrator configured to: receive the pulse signal and integrate the pulse signal.
可选地,对于所述对所述脉冲信号进行积分,所述数字积分器还用于:Optionally, for said integrating said pulse signal, said digital integrator is also used for:
设定积分工作时段;Set the integral working hours;
接收所述脉冲信号和时钟信号;receiving the pulse signal and clock signal;
利用所述时钟信号的脉冲上升沿,将所述脉冲信号的脉冲个数量化成数字信号;Using the pulse rising edge of the clock signal, quantizing the pulse number of the pulse signal into a digital signal;
输出所述数字信号。output the digital signal.
可选地,在所述积分工作时段内,将所述脉冲信号量化后的每一脉冲宽度进行叠加,得到量化后的总脉冲宽度。Optionally, within the integration working period, each quantized pulse width of the pulse signal is superimposed to obtain a total quantized pulse width.
可选地,所述时钟信号的频率设定至少为所述脉冲信号的频率的两倍。Optionally, the frequency of the clock signal is set to be at least twice the frequency of the pulse signal.
相比于现有技术,本申请实施例具有如下有益效果:Compared with the prior art, the embodiment of the present application has the following beneficial effects:
本申请实施例提供的信号处理方法及信号处理电路,其中所述一种信号处理方法,在接收模拟信号和参考信号后,通过将所述模拟信号与所述参考信号进行比较,根据比较结果输出脉冲信号。由此可见,本实施例仅通过比较模拟信号与参考信号,并根据比较结果输出完成整流后的脉冲信 号,而不需通过半桥或全桥整流器以及放大、滤波、调制与解调等模拟信号处理方式,将模拟信号的负信号整流成正信号或将模拟信号的正信号整流成负信号,就能提取出模拟信号的特征,从而在不改变模拟信号的波形的情况下,完成对模拟信号进行整流积分及特征提取的过程。因此本申请实施例能够实现在对模拟信号进行特征提取时保证信号不失真。In the signal processing method and signal processing circuit provided in the embodiments of the present application, the signal processing method, after receiving an analog signal and a reference signal, compares the analog signal with the reference signal, and outputs Pulse signal. It can be seen that this embodiment only compares the analog signal with the reference signal, and outputs the rectified pulse signal according to the comparison result. signal, instead of rectifying the negative signal of the analog signal into a positive signal or rectifying the positive signal of the analog signal into a negative signal through a half-bridge or full-bridge rectifier and analog signal processing methods such as amplification, filtering, modulation, and demodulation. The features of the analog signal are extracted, so that the process of rectification, integration and feature extraction of the analog signal can be completed without changing the waveform of the analog signal. Therefore, the embodiment of the present application can ensure that the signal is not distorted when performing feature extraction on the analog signal.
说明书附图Instructions attached
下面结合附图对本发明作进一步说明:The present invention will be further described below in conjunction with accompanying drawing:
图1是本申请实施例提供的信号处理方法的流程示意图;FIG. 1 is a schematic flowchart of a signal processing method provided in an embodiment of the present application;
图2是本申请实施例提供的信号处理方法在一种应用场景下的信号波形示意图;FIG. 2 is a schematic diagram of a signal waveform in an application scenario of a signal processing method provided by an embodiment of the present application;
图3是本申请实施例提供的信号处理方法在另一种应用场景下的信号波形示意图;FIG. 3 is a schematic diagram of a signal waveform in another application scenario of the signal processing method provided by the embodiment of the present application;
图4是本申请实施例提供的信号处理电路的结构示意图;FIG. 4 is a schematic structural diagram of a signal processing circuit provided by an embodiment of the present application;
图5是本申请实施例提供的信号处理电路的信号处理原理示意图。FIG. 5 is a schematic diagram of a signal processing principle of a signal processing circuit provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本申请提供一种信号处理方法,请参阅图1,图1是本申请实施例提供的信号处理方法的流程示意图。该信号处理方法包括:The present application provides a signal processing method, please refer to FIG. 1 , and FIG. 1 is a schematic flowchart of the signal processing method provided in an embodiment of the present application. The signal processing methods include:
S101、接收模拟信号和参考信号。S101. Receive an analog signal and a reference signal.
在接收模拟信号和参考信号时,模拟信号和参考信号可以是同时接收,也可以是在接收模拟信号的时间,间歇接收参考信号。具体操作时,可以设定参考信号的周期,按照设定的周期接收参考信号。 When receiving the analog signal and the reference signal, the analog signal and the reference signal may be received simultaneously, or the reference signal may be received intermittently when the analog signal is received. During specific operations, the period of the reference signal may be set, and the reference signal may be received according to the set period.
现有的整流技术方案对原始信号进行特征提取时,提取多频段的特征需要多个通道(一般大于10个通道)并行处理,因此,现有的整流技术方案需要多个整流器,而多个整流器会占用更多的芯片面积,增加成本,不利于在小型化、微型化的物联网设备中应用;同时,现有的技术方案利用多个通道的整流器提取多频段的特征,然而不同通道的整流器之间由于芯片制造工艺,会出现失配的情况,这会降低神经网络算法的识别率。When the existing rectification technology scheme extracts the features of the original signal, multiple channels (generally greater than 10 channels) are required for parallel processing to extract the features of multiple frequency bands. Therefore, the existing rectification technology scheme needs multiple rectifiers, and multiple rectifiers It will take up more chip area and increase the cost, which is not conducive to the application in miniaturized and miniaturized Internet of Things devices; at the same time, the existing technical solutions use rectifiers with multiple channels to extract multi-band features, but rectifiers with different channels Due to the chip manufacturing process, there will be a mismatch between them, which will reduce the recognition rate of the neural network algorithm.
可选地,在一种实施例中,每隔第一时间间隔输入一次参考信号,该第一时间间隔为该参考信号单次输入持续时长的预设倍数,该预设倍数为大于或等于1的整数。Optionally, in an embodiment, the reference signal is input every first time interval, the first time interval is a preset multiple of the duration of a single input of the reference signal, and the preset multiple is greater than or equal to 1 an integer of .
具体地,以T0为模拟信号和斜波信号的输入时间点,该第一时间间隔(即采样间隔)为T,斜波信号输入的时间点为T0,则下一次斜波信号输入的时间点为T0+T,设斜波信号的单次输入持续时长为TR。当第一时间间隔T为单次输入持续时长TR的n倍时(n大于或等于1),用于执行将该模拟信号与该斜波信号进行比较的比较器可以被n个通道信号链路共用,因此本申请实施例只需要一个斜波发生器与一个比较器就可以实现L个通道信号的整流。Specifically, taking T0 as the input time point of the analog signal and the ramp signal, the first time interval (that is, the sampling interval) is T, and the time point of the ramp signal input is T0, then the time point of the next ramp signal input is T0+T, and the duration of a single input of the ramp signal is set as TR. When the first time interval T is n times the duration TR of a single input (n is greater than or equal to 1), the comparator used to perform the comparison between the analog signal and the ramp signal can be chained by n channel signals Therefore, the embodiment of the present application only needs one ramp generator and one comparator to realize the rectification of L channel signals.
可以理解的是,将每次输入该斜波信号的时间间隔设为第一时间间隔(即采样间隔),当该第一时间间隔大于该斜波信号的单次输入持续时长时,在单次输入该斜波信号结束时间点与下一次输入斜波信号开始时间点之间的时间,可以接收并比较另一个通道的模拟信号。由此,本实施例通过共用一个斜波信号发生器和一个比较器对多通道的输入信号(即模拟信号)进行采样和整流,不需要多个整流器,减小芯片面积,避免因为不同通道的整流器之间产生的匹配问题。It can be understood that the time interval of each input of the ramp signal is set as the first time interval (ie, the sampling interval), and when the first time interval is greater than the duration of a single input of the ramp signal, the Input the time between the end time point of the ramp signal and the start time point of the next input ramp signal to receive and compare the analog signal of another channel. Therefore, this embodiment samples and rectifies multi-channel input signals (i.e., analog signals) by sharing one ramp signal generator and one comparator, without requiring multiple rectifiers, reducing chip area, and avoiding Matching problems between rectifiers.
在具体的应用场景中,接收到的模拟信号在不同的应用场景下为不同类型的模拟信号,包括但不限于语音信号、光电信号、生物电信号,例如在语音识别系统的应用场景中为语音信号。而参考信号一般可以利用信号发生器设定所需类型的信号,可以理解的是,该参考信号的波形还可以是三角波、锯齿波、梯形波或者阶梯形的斜波等等。In specific application scenarios, the received analog signals are different types of analog signals in different application scenarios, including but not limited to voice signals, photoelectric signals, and bioelectric signals. Signal. The reference signal can generally use a signal generator to set a desired type of signal. It can be understood that the waveform of the reference signal can also be a triangular wave, a sawtooth wave, a trapezoidal wave, or a stepped ramp.
S102、将模拟信号与参考信号进行比较。 S102. Compare the analog signal with the reference signal.
本步骤中,将该模拟信号与该参考信号进行比较,得到比较结果。其中,当该模拟信号的电压值大于该参考信号的电压值时,对应脉冲信号的高电平,当该模拟信号的电压值小于或等于该参考信号的电压值时,对应该脉冲信号的低电平;或者,当该模拟信号的电压值大于该参考信号的电压值时,对应脉冲信号的低电平,当该模拟信号的电压值小于或等于该参考信号的电压值时,对应该脉冲信号的高电平。In this step, the analog signal is compared with the reference signal to obtain a comparison result. Wherein, when the voltage value of the analog signal is greater than the voltage value of the reference signal, it corresponds to the high level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the reference signal, it corresponds to the low level of the pulse signal. level; or, when the voltage value of the analog signal is greater than the voltage value of the reference signal, it corresponds to the low level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the reference signal, it corresponds to the pulse signal high level.
可选地,在一种实施例中,参考信号为三角波,该信号处理方法包括:Optionally, in an embodiment, the reference signal is a triangle wave, and the signal processing method includes:
接收模拟信号和该三角波;Receive the analog signal and the triangle wave;
将该模拟信号与该三角波进行比较;comparing the analog signal with the triangle wave;
根据比较结果输出脉冲信号。A pulse signal is output according to the comparison result.
其中,当该模拟信号的电压值大于该三角波的电压值时,对应脉冲信号的高电平,当该模拟信号的电压值小于或等于该三角波的电压值时,对应该脉冲信号的低电平;或者,当该模拟信号的电压值大于该三角波的电压值时,对应脉冲信号的低电平,当该模拟信号的电压值小于或等于该三角波的电压值时,对应该脉冲信号的高电平。Wherein, when the voltage value of the analog signal is greater than the voltage value of the triangle wave, it corresponds to the high level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the triangle wave, it corresponds to the low level of the pulse signal ; Or, when the voltage value of the analog signal is greater than the voltage value of the triangular wave, the corresponding low level of the pulse signal, when the voltage value of the analog signal is less than or equal to the voltage value of the triangular wave, the corresponding high level of the pulse signal flat.
可选地,在一种实施例中,该参考信号为锯齿波,该信号处理方法包括:Optionally, in an embodiment, the reference signal is a sawtooth wave, and the signal processing method includes:
接收模拟信号和该锯齿波;Receive the analog signal and the sawtooth wave;
将该模拟信号与该锯齿波进行比较;comparing the analog signal to the sawtooth wave;
根据比较结果输出脉冲信号。A pulse signal is output according to the comparison result.
其中,当该模拟信号的电压值大于该锯齿波的电压值时,对应脉冲信号的高电平,当该模拟信号的电压值小于或等于该锯齿波的电压值时,对应该脉冲信号的低电平;或者,当该模拟信号的电压值大于该锯齿波的电压值时,对应脉冲信号的低电平,当该模拟信号的电压值小于或等于该锯齿波的电压值时,对应该脉冲信号的高电平。Wherein, when the voltage value of the analog signal is greater than the voltage value of the sawtooth wave, it corresponds to the high level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the sawtooth wave, it corresponds to the low level of the pulse signal. level; or, when the voltage value of the analog signal is greater than the voltage value of the sawtooth wave, it corresponds to the low level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the sawtooth wave, it corresponds to the pulse signal high level.
可选地,在一种优选实施例中,参考信号为阶梯形的斜波信号,该信号处理方法包括:Optionally, in a preferred embodiment, the reference signal is a stepped ramp signal, and the signal processing method includes:
接收模拟信号和该阶梯形的斜波信号; receiving the analog signal and the stepped ramp signal;
将该模拟信号与该阶梯形的斜波信号进行比较;comparing the analog signal with the stepped ramp signal;
根据比较结果输出脉冲信号。A pulse signal is output according to the comparison result.
其中,当该模拟信号的电压值大于该阶梯形的斜波信号的电压值时,对应脉冲信号的高电平,当该模拟信号的电压值小于或等于该阶梯形的斜波信号的电压值时,对应该脉冲信号的低电平;或者,当该模拟信号的电压值大于该阶梯形的斜波信号的电压值时,对应脉冲信号的低电平,当该模拟信号的电压值小于或等于该阶梯形的斜波信号的电压值时,对应该脉冲信号的高电平。Wherein, when the voltage value of the analog signal is greater than the voltage value of the ladder-shaped ramp signal, corresponding to the high level of the pulse signal, when the voltage value of the analog signal is less than or equal to the voltage value of the ladder-shaped ramp signal , corresponding to the low level of the pulse signal; or, when the voltage value of the analog signal is greater than the voltage value of the stepped ramp signal, corresponding to the low level of the pulse signal, when the voltage value of the analog signal is less than or When it is equal to the voltage value of the ladder-shaped ramp signal, it corresponds to the high level of the pulse signal.
其中,该参考信号为阶梯形的斜波信号,该斜波信号的单次输入持续时长按照如下方式计算得到:Wherein, the reference signal is a ladder-shaped ramp signal, and the duration of a single input of the ramp signal is calculated as follows:
确定该斜波信号的阶梯数以及每个阶梯之间的第二时间间隔,将该第二时间间隔与该阶梯数相乘,得到该斜波信号的单次输入持续时长。The number of steps of the ramp signal and the second time interval between each step are determined, and the second time interval is multiplied by the number of steps to obtain a single input duration of the ramp signal.
在具体实施例中,使用斜波信号发生器产生阶梯形的斜波信号,设置时,斜波信号的每一个阶梯的阶梯时间间隔设为TSTEP,每一阶梯的电压差设为VSTEP,斜波信号的阶梯数设为K,则斜波发生器一共有K步,设该斜波信号的单次输入持续时长为TR,计算公式如下:In a specific embodiment, a ramp signal generator is used to generate a stepped ramp signal. When setting, the step time interval of each step of the ramp signal is set to T STEP , and the voltage difference of each step is set to V STEP , If the number of steps of the ramp signal is set to K, then the ramp generator has a total of K steps. Let the duration of a single input of the ramp signal be TR, and the calculation formula is as follows:
TR=K·TSTEP TR=K·T STEP
本优选实施例通过选用阶梯形的斜波信号,并通过上述计算方法计算出斜波信号的单次输入持续时长,有利于在控制斜波信号输入时,根据计算出的单次输入持续时长,使得通过软件更准确地设定斜波信号的单次输入持续时长。In this preferred embodiment, by selecting a ladder-shaped ramp signal and calculating the duration of a single input of the ramp signal through the above calculation method, it is beneficial to control the input of the ramp signal according to the calculated duration of the single input. It makes it possible to more accurately set the duration of a single input of the ramp signal through the software.
可选地,在一种实施例中,该将该模拟信号与该参考信号进行比较包括:Optionally, in an embodiment, comparing the analog signal with the reference signal includes:
当检测未输入斜波信号时,输出低电平;When no ramp signal is detected, output low level;
当检测到输入斜波信号时,计算该模拟信号的共模电压值,该斜波信号的电压值以该共模电压值为最低值正向增大。When the input ramp signal is detected, the common mode voltage value of the analog signal is calculated, and the voltage value of the ramp signal increases positively with the lowest value of the common mode voltage value.
可以理解的是,由于信号在不同的频段的能量强度是语音识别系统或其它识别系统的关键信号特征,以语音识别系统为例,当输入的模拟信号 为语音信号时,为了得到不同频段的信号能量,需要对输入的语音信号进行半波或全波整流并输出全正相信号。It can be understood that since the energy intensity of the signal in different frequency bands is the key signal characteristic of the speech recognition system or other recognition systems, taking the speech recognition system as an example, when the input analog signal When it is a voice signal, in order to obtain the signal energy of different frequency bands, it is necessary to perform half-wave or full-wave rectification on the input voice signal and output a full positive-phase signal.
在本实施例中,以T0为模拟信号和斜波信号的输入时间点,从T0开始,斜波信号从模拟信号的共模电压值为最低值开始增大,同时,将该模拟信号与该斜波信号进行比较,当该模拟信号的电压值大于该斜波信号的电压值时输出高电平,当该模拟信号的电压值小于或等于该斜波信号的电压值时输出低电平。因为斜波信号是从共模电压值正向增大,所以当模拟信号的电压值小于或等于共模电压值时,即模拟信号的电压值小于或等于斜波信号的电压值,因此此时比较器输出的是低电平,没有脉冲输出。由此可见,在此过程中,该模拟信号的Vin+信号会根据信号幅度大小的不同,转换成对应不同脉冲宽度的高电平信号,不论Vin-信号的信号幅度大小为多少,该Vin-信号都会转换成低电平信号,此时所得的输出的总脉冲宽度信号会是全正相信号的幅度积分。In this embodiment, T0 is taken as the input time point of the analog signal and the ramp signal. Starting from T0, the ramp signal increases from the lowest value of the common-mode voltage value of the analog signal. At the same time, the analog signal and the When the voltage value of the analog signal is greater than the voltage value of the ramp signal, a high level is output, and when the voltage value of the analog signal is less than or equal to the voltage value of the ramp signal, a low level is output. Because the ramp signal increases positively from the common mode voltage value, when the voltage value of the analog signal is less than or equal to the common mode voltage value, that is, the voltage value of the analog signal is less than or equal to the voltage value of the ramp signal, so at this time The output of the comparator is low level and there is no pulse output. It can be seen that in this process, the Vin+ signal of the analog signal will be converted into a high-level signal corresponding to different pulse widths according to the signal amplitude. Regardless of the signal amplitude of the Vin- signal, the Vin- signal will be converted into a low-level signal, and the total output pulse width signal obtained at this time will be the amplitude integral of the full positive-phase signal.
请参阅图2,图2是本申请实施例提供的信号处理方法在一种应用场景下的信号波形示意图。如图2所示,具体的整流过程如下:整流过程从T0开始,阶梯形的斜波信号从输入信号(如模拟信号)VIN的共模电压值开始增大,当斜波信号的电压值超过模拟信号的电压值的时候,比较器输出的电压从高电平变到低电平。因为斜波信号是从输入信号VIN的共模电压值往上增大,所以当输入信号VIN小于输入信号VIN的共模电压值时,比较器没有脉冲输出,比较器在T0+T时刻输出的脉冲为0。其中,Δt0为输入信号在T0周期中,VIN大于共模电压值部分除以斜波信号的斜率得到的脉冲宽度,Δt2为输入信号在T2周期中,VIN大于共模电压值部分除以斜波信号的斜率得到的脉冲宽度。Please refer to FIG. 2. FIG. 2 is a schematic diagram of a signal waveform in an application scenario of the signal processing method provided by the embodiment of the present application. As shown in Figure 2, the specific rectification process is as follows: the rectification process starts from T0, and the ladder-shaped ramp signal increases from the common-mode voltage value of the input signal (such as an analog signal) VIN. When the voltage value of the ramp signal exceeds When the voltage value of the analog signal is changed, the voltage output by the comparator changes from high level to low level. Because the ramp signal increases from the common-mode voltage value of the input signal VIN, when the input signal VIN is less than the common-mode voltage value of the input signal VIN, the comparator has no pulse output, and the comparator outputs at T0+T time Pulse is 0. Among them, Δt0 is the pulse width obtained by dividing the part where VIN is greater than the common-mode voltage value by the slope of the ramp signal during the T0 period of the input signal, and Δt2 is the pulse width obtained by dividing the part where VIN is greater than the common-mode voltage value by the ramp wave during the T2 period of the input signal. The slope of the signal gives the pulse width.
S103、根据比较结果输出脉冲信号。S103. Outputting a pulse signal according to the comparison result.
在语音识别系统或其他识别系统中,为了得到不同频段的信号的能量强度,通常需要对模拟信号进行半波或全波整流、积分和量化。其中,现有的技术方案通过全桥或半桥整流器,或者通过放大、滤波、调制与解调等模拟信号处理方式对输入的模拟信号进行整流,结果会使整流后的模拟信号的波形发生改变,例如,其中一种整流方式是,输入的模拟信号为正 弦波,通过整流方法将该正弦波的反相正弦波全部整流成全正相的正弦波。由于整流后的模拟信号的波形发生改变,整流后的模拟信号也失真,导致提取出的特征也不准确。In speech recognition systems or other recognition systems, in order to obtain the energy intensity of signals in different frequency bands, it is usually necessary to perform half-wave or full-wave rectification, integration and quantization on analog signals. Among them, the existing technical solutions rectify the input analog signal through a full-bridge or half-bridge rectifier, or through analog signal processing methods such as amplification, filtering, modulation and demodulation, and as a result, the waveform of the rectified analog signal will change. , for example, one of the rectification methods is that the input analog signal is positive A sine wave, through the rectification method, all the anti-phase sine waves of the sine wave are rectified into full positive-phase sine waves. Since the waveform of the rectified analog signal changes, the rectified analog signal is also distorted, resulting in inaccurate extracted features.
然而通过上述步骤可以得到,本方案输入的脉冲信号是通过参考信号和模拟信号的比较结果,相当于从模拟信号进行采样,然后输出一个采样信号,并没有直接改变模拟信号以输出另一个波形改变后的模拟信号。However, through the above steps, it can be obtained that the input pulse signal of this program is the comparison result of the reference signal and the analog signal, which is equivalent to sampling from the analog signal, and then outputting a sampling signal, without directly changing the analog signal to output another waveform change after the analog signal.
由此可见,本实施例仅通过比较模拟信号与参考信号,并根据比较结果输出完成整流后的脉冲信号,而不需通过半桥或全桥整流器以及放大、滤波、调制与解调等模拟信号处理方式,将模拟信号的负信号整流成正信号或将模拟信号的正信号整流成负信号,就能提取出模拟信号的特征,从而在不改变模拟信号的波形的情况下,完成对模拟信号进行整流及特征提取的过程。因此本申请实施例能够实现在对模拟信号进行特征提取时保证信号不失真。It can be seen that this embodiment only compares the analog signal with the reference signal, and outputs the rectified pulse signal according to the comparison result, without the need for half-bridge or full-bridge rectifiers and analog signals such as amplification, filtering, modulation, and demodulation. By rectifying the negative signal of the analog signal into a positive signal or rectifying the positive signal of the analog signal into a negative signal, the characteristics of the analog signal can be extracted, so that the analog signal can be processed without changing the waveform of the analog signal. The process of rectification and feature extraction. Therefore, the embodiment of the present application can ensure that the signal is not distorted when performing feature extraction on the analog signal.
可选地,在一种实施例中,为了实现数字化信号输出,该信号处理方法还包括:Optionally, in an embodiment, in order to realize digital signal output, the signal processing method further includes:
通过数字积分方法对该脉冲信号进行积分。The pulse signal is integrated by a digital integration method.
本实施例能够完成对模拟信号进行整流、特征提取以及模数转换的完整过程,同时避免改变模拟信号,保证输出信号不失真。This embodiment can complete the complete process of rectification, feature extraction and analog-to-digital conversion of the analog signal, while avoiding changing the analog signal and ensuring that the output signal is not distorted.
可选地,在一种实施例中,为了对该脉冲信号进行积分,上述通过数字积分方法对该脉冲信号进行积分,包括:Optionally, in an embodiment, in order to integrate the pulse signal, the above-mentioned integration of the pulse signal by a digital integration method includes:
设定积分工作时段;Set the integral working hours;
接收该脉冲信号和时钟信号;receiving the pulse signal and clock signal;
利用该时钟信号的脉冲上升沿,将该脉冲信号的脉冲个数量化成数字信号;Using the pulse rising edge of the clock signal, quantizing the pulse number of the pulse signal into a digital signal;
输出该数字信号。output the digital signal.
请参阅图3,图3是本申请实施例提供的信号处理方法在另一种应用场景下的信号波形示意图。该脉冲信号的脉冲宽度的总长度统计为积分工作时段TM,在该积分工作时段TM的时间段中,若接收该脉冲信号共有 H个脉冲,每一脉冲的宽度会被时钟的上升沿个数量化,对应的量化后的脉冲分别记为N1,N2,……NH。Please refer to FIG. 3 . FIG. 3 is a schematic diagram of signal waveforms in another application scenario of the signal processing method provided by the embodiment of the present application. The total length of the pulse width of the pulse signal is counted as the integral working period TM. In the time period of the integral working period TM, if the pulse signal is received in total H pulses, the width of each pulse will be quantified by the rising edge of the clock, and the corresponding quantized pulses are respectively recorded as N1, N2, ... NH.
可选地,在一种实施例中,在该积分工作时段内,将该脉冲信号量化后的每一脉冲宽度进行叠加,得到量化后的总脉冲宽度。Optionally, in an embodiment, within the integration working period, each quantized pulse width of the pulse signal is superimposed to obtain a quantized total pulse width.
具体如下:设该积分工作时段为TM,对该脉冲信号进行量化后,该脉冲信号的每一脉冲分别记为N1,N2,……NH,则量化后的总脉冲宽度记为NSUM,且计算如下:The details are as follows: Let the integral working period be TM, after the pulse signal is quantized, each pulse of the pulse signal is recorded as N1, N2, ... NH, then the total pulse width after quantization is recorded as NSUM, and the calculation as follows:
NSUM=N1+N2+……+NHNSUM=N1+N2+...+NH
可以理解的是,本实施例在设定的积分工作时段TM内,对脉冲信号进行量化,积分工作时间TM越长,输出的结果与理想的半波整流与积分器的结果越接近,而该时钟信号的频率越高,量化精度越高。It can be understood that this embodiment quantizes the pulse signal within the set integral working period TM, the longer the integral working time TM, the closer the output result is to the ideal half-wave rectifier and integrator result, and the The higher the frequency of the clock signal, the higher the quantization accuracy.
基于此,本申请提供多种按需设定积分工作时间或按需设定时钟信号频率的具体实施例,在此不一一举例。Based on this, the present application provides various specific embodiments of setting the integral working time or setting the frequency of the clock signal on demand, and no examples are given here.
优选地,该时钟信号的频率设定为至少是该脉冲信号的频率的两倍。Preferably, the frequency of the clock signal is set to be at least twice the frequency of the pulse signal.
可以理解的是,当时钟信号的频率小于脉冲信号的频率的两倍时,积分后得到的数字信号不能反映该脉冲信号,因此时钟信号的频率设定为至少是该脉冲信号的频率的两倍,而且时钟信号的频率是该脉冲信号的频率的三倍、四倍,甚至十倍,积分后得到的数字信号与该脉冲信号的误差会成倍减小,时钟信号的频率越高,量化该脉冲信号的精度越高。It can be understood that when the frequency of the clock signal is less than twice the frequency of the pulse signal, the digital signal obtained after integration cannot reflect the pulse signal, so the frequency of the clock signal is set to be at least twice the frequency of the pulse signal , and the frequency of the clock signal is three times, four times, or even ten times the frequency of the pulse signal, the error between the digital signal obtained after integration and the pulse signal will be multiplied, the higher the frequency of the clock signal, the quantized The higher the accuracy of the pulse signal.
本申请还提供一种信号处理电路,请参阅图4,图4是本申请实施例提供的信号处理电路的结构示意图。该信号处理电路包括信号发生器201和比较器202,其中,该信号发生器201用于产生参考信号并向该比较器202发送该参考信号。The present application also provides a signal processing circuit, please refer to FIG. 4 , which is a schematic structural diagram of the signal processing circuit provided by the embodiment of the present application. The signal processing circuit includes a signal generator 201 and a comparator 202 , wherein the signal generator 201 is used to generate a reference signal and send the reference signal to the comparator 202 .
该比较器202,用于接收模拟信号和参考信号;将该模拟信号与该参考信号进行比较;根据比较结果输出脉冲信号。其中,当该模拟信号的电压值大于该参考信号的电压值时,对应脉冲信号的高电平,当该模拟信号的电压值小于或等于该参考信号的电压值时,对应该脉冲信号的低电平;或者,当该模拟信号的电压值大于该参考信号的电压值时,对应脉冲信号的低电平,当该模拟信号的电压值小于或等于该参考信号的电压值时,对 应该脉冲信号的高电平。The comparator 202 is used for receiving an analog signal and a reference signal; comparing the analog signal with the reference signal; and outputting a pulse signal according to the comparison result. Wherein, when the voltage value of the analog signal is greater than the voltage value of the reference signal, it corresponds to the high level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the reference signal, it corresponds to the low level of the pulse signal. level; or, when the voltage value of the analog signal is greater than the voltage value of the reference signal, it corresponds to the low level of the pulse signal, and when the voltage value of the analog signal is less than or equal to the voltage value of the reference signal, the The high level of the signal should be pulsed.
本实施例仅通过比较模拟信号与参考信号,并根据比较结果输出完成整流后的脉冲信号,而不需通过半桥或全桥整流器以及放大、滤波、调制与解调等模拟信号处理方式,将模拟信号的负信号整流成正信号或将模拟信号的正信号整流成负信号,就能提取出模拟信号的特征,从而在不改变模拟信号的波形的情况下,完成对模拟信号进行整流及特征提取的过程。因此本申请实施例能够实现在对模拟信号进行特征提取时保证信号不失真。In this embodiment, only by comparing the analog signal with the reference signal, and outputting the rectified pulse signal according to the comparison result, there is no need for half-bridge or full-bridge rectifiers and analog signal processing methods such as amplification, filtering, modulation, and demodulation. By rectifying the negative signal of the analog signal into a positive signal or rectifying the positive signal of the analog signal into a negative signal, the characteristics of the analog signal can be extracted, so that the rectification and feature extraction of the analog signal can be completed without changing the waveform of the analog signal the process of. Therefore, the embodiment of the present application can ensure that the signal is not distorted when performing feature extraction on the analog signal.
可选地,在一种实施例中,该信号发生器201,还用于:Optionally, in an embodiment, the signal generator 201 is also used for:
每隔第一时间间隔产生一次参考信号,该第一时间间隔为该参考信号单次输入持续时长的预设倍数,该预设倍数为大于或等于1的整数。The reference signal is generated every first time interval, and the first time interval is a preset multiple of a single input duration of the reference signal, and the preset multiple is an integer greater than or equal to 1.
可以理解的是,将每次输入该斜波信号的时间间隔设为第一时间间隔(即采样间隔),当该第一时间间隔大于该斜波信号的单次输入持续时长时,在单次输入该斜波信号结束时间点与下一次输入斜波信号开始时间点之间的时间,可以接收并比较另一个通道的模拟信号。由此,本实施例通过共用一个斜波信号发生器201和一个比较器202对多通道的输入信号(即模拟信号)进行采样和整流,不需要多个整流器,减小芯片面积,避免因为不同通道的整流器之间产生的匹配问题。It can be understood that the time interval of each input of the ramp signal is set as the first time interval (ie, the sampling interval), and when the first time interval is greater than the duration of a single input of the ramp signal, the Input the time between the end time point of the ramp signal and the start time point of the next input ramp signal to receive and compare the analog signal of another channel. Therefore, this embodiment samples and rectifies multi-channel input signals (i.e., analog signals) by sharing one ramp signal generator 201 and one comparator 202, without requiring multiple rectifiers, reducing chip area, and avoiding A matching problem arises between the rectifiers of the channels.
可选地,在一种实施例中,该信号发生器201产生的参考信号为阶梯形的斜波信号,该信号发生器201还用于:Optionally, in an embodiment, the reference signal generated by the signal generator 201 is a stepped ramp signal, and the signal generator 201 is also used for:
确定该斜波信号的阶梯数以及每个阶梯之间的第二时间间隔,将该第二时间间隔与该阶梯数相乘,得到该斜波信号的单次输入持续时长。The number of steps of the ramp signal and the second time interval between each step are determined, and the second time interval is multiplied by the number of steps to obtain a single input duration of the ramp signal.
在具体实施例中,使用斜波信号发生器产生阶梯形的斜波信号,设置时,斜波信号的每一个阶梯的阶梯时间间隔设为TSTEP,每一阶梯的电压差设为VSTEP,斜波信号的阶梯数设为K,则斜波发生器一共有K步,设该斜波信号的单次输入持续时长为TR,计算公式如下:In a specific embodiment, a ramp signal generator is used to generate a stepped ramp signal. When setting, the step time interval of each step of the ramp signal is set to T STEP , and the voltage difference of each step is set to V STEP , If the number of steps of the ramp signal is set to K, then the ramp generator has a total of K steps. Let the duration of a single input of the ramp signal be TR, and the calculation formula is as follows:
TR=K·TSTEP TR=K·T STEP
本优选实施例通过选用阶梯形的斜波信号,并通过上述计算方法计算出斜波信号的单次输入持续时长,有利于在控制斜波信号输入时,根据计 算出的单次输入持续时长,使得通过软件更准确地设定斜波信号的单次输入持续时长。In this preferred embodiment, by selecting a ladder-shaped ramp signal and calculating the duration of a single input of the ramp signal through the above calculation method, it is beneficial to control the input of the ramp signal according to the calculation method. The calculated duration of a single input enables the software to more accurately set the duration of a single input of the ramp signal.
可选地,在一种实施例中,该比较器202,还用于当检测未输入斜波信号时,输出低电平;当检测到输入斜波信号时,计算该模拟信号的共模电压值;Optionally, in one embodiment, the comparator 202 is also used to output a low level when no ramp signal is detected; and to calculate the common-mode voltage of the analog signal when an input ramp signal is detected value;
该信号发生器201,还用于以该共模电压值为最低值正向增大该斜波信号的电压值。The signal generator 201 is further configured to positively increase the voltage value of the ramp signal with the lowest value of the common mode voltage value.
可以理解的是,由于信号在不同的频段的能量强度是语音识别系统或其它识别系统的关键信号特征,以语音识别系统为例,当输入的模拟信号为语音信号时,为了得到不同频段的信号能量,需要对输入的语音信号进行半波或全波整流并输出全正相信号。It can be understood that since the energy intensity of signals in different frequency bands is a key signal feature of a speech recognition system or other recognition systems, taking a speech recognition system as an example, when the input analog signal is a speech signal, in order to obtain signals of different frequency bands Energy, it is necessary to perform half-wave or full-wave rectification on the input voice signal and output a full positive phase signal.
请参阅图4,图4是本申请实施例提供的信号处理电路的结构示意图。可选地,在一种实施例中,信号处理电路包括信号发生器201、比较器202和数字积分器203,其中,Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of a signal processing circuit provided by an embodiment of the present application. Optionally, in an embodiment, the signal processing circuit includes a signal generator 201, a comparator 202 and a digital integrator 203, wherein,
该信号发生器201用于产生参考信号并向该比较器202发送该参考信号;The signal generator 201 is used to generate a reference signal and send the reference signal to the comparator 202;
该比较器202用于接收模拟信号和参考信号;将该模拟信号与该参考信号进行比较;根据比较结果输出脉冲信号;The comparator 202 is used to receive an analog signal and a reference signal; compare the analog signal with the reference signal; output a pulse signal according to the comparison result;
该数字积分器203用于接收该脉冲信号,并对该脉冲信号进行积分。The digital integrator 203 is used for receiving the pulse signal and integrating the pulse signal.
本实施例能够完成对模拟信号进行整流、特征提取以及模数转换的完整过程,同时避免改变模拟信号,保证输出信号不失真。This embodiment can complete the complete process of rectification, feature extraction and analog-to-digital conversion of the analog signal, while avoiding changing the analog signal and ensuring that the output signal is not distorted.
请参阅图5,图5是本申请实施例提供的信号处理电路的信号处理原理示意图。在该信号处理电路中,信号发生器201产生参考信号VRAMP,该参考信号VRAMP与模拟信号VIN输入到该比较器202;该参考信号VRAMP与该模拟信号VIN在该比较器202进行比较后,根据比较结果输出脉冲信号;该脉冲信号和时钟信号输入到该数字积分器203;通过该数字积分器203对该脉冲信号进行积分,得到数字信号并最终输出该数字信号。Please refer to FIG. 5 . FIG. 5 is a schematic diagram of a signal processing principle of a signal processing circuit provided in an embodiment of the present application. In the signal processing circuit, the signal generator 201 generates a reference signal V RAMP , and the reference signal V RAMP and the analog signal V IN are input to the comparator 202 ; the reference signal V RAMP and the analog signal V IN are input to the comparator 202 After the comparison, a pulse signal is output according to the comparison result; the pulse signal and the clock signal are input to the digital integrator 203; the pulse signal is integrated by the digital integrator 203 to obtain a digital signal and finally output the digital signal.
可选地,在一种实施例中,该数字积分器203还用于: Optionally, in an embodiment, the digital integrator 203 is also used for:
设定积分工作时段;Set the integral working hours;
接收该脉冲信号和时钟信号;receiving the pulse signal and clock signal;
利用该时钟信号的脉冲上升沿,将该脉冲信号的脉冲个数量化成数字信号;Using the pulse rising edge of the clock signal, quantizing the pulse number of the pulse signal into a digital signal;
输出该数字信号。output the digital signal.
可选地,在一种实施例中,在该积分工作时段内,将该脉冲信号量化后的每一脉冲宽度进行叠加,得到量化后的总脉冲宽度。Optionally, in an embodiment, within the integration working period, each quantized pulse width of the pulse signal is superimposed to obtain a quantized total pulse width.
具体如下:设该积分工作时段为TM,对该脉冲信号进行量化后,该脉冲信号的每一脉冲分别记为N1,N2,……NH,则量化后的总脉冲宽度记为NSUM,且计算如下:The details are as follows: Let the integral working period be TM, after the pulse signal is quantized, each pulse of the pulse signal is recorded as N1, N2, ... NH, then the total pulse width after quantization is recorded as NSUM, and the calculation as follows:
NSUM=N1+N2+……+NHNSUM=N1+N2+...+NH
可以理解的是,本实施例在设定的积分工作时段TM内,对脉冲信号进行量化,积分工作时间TM越长,输出的结果与理想的半波整流与积分器的结果越接近,而该时钟信号的频率越高,量化精度越高。It can be understood that this embodiment quantizes the pulse signal within the set integral working period TM, the longer the integral working time TM, the closer the output result is to the ideal half-wave rectifier and integrator result, and the The higher the frequency of the clock signal, the higher the quantization accuracy.
基于此,本申请提供多种按需设定积分工作时间或按需设定时钟信号频率的具体实施例,在此不一一举例。Based on this, the present application provides various specific embodiments of setting the integral working time or setting the frequency of the clock signal on demand, and no examples are given here.
优选地,该时钟信号的频率设定为至少是该脉冲信号的频率的两倍。Preferably, the frequency of the clock signal is set to be at least twice the frequency of the pulse signal.
可以理解的是,当时钟信号的频率小于脉冲信号的频率的两倍时,积分后得到的数字信号不能反映该脉冲信号,因此时钟信号的频率设定为至少是该脉冲信号的频率的两倍,而且时钟信号的频率是该脉冲信号的频率的三倍、四倍,甚至十倍,积分后得到的数字信号与该脉冲信号的误差会成倍减小,时钟信号的频率越高,量化该脉冲信号的精度越高。It can be understood that when the frequency of the clock signal is less than twice the frequency of the pulse signal, the digital signal obtained after integration cannot reflect the pulse signal, so the frequency of the clock signal is set to be at least twice the frequency of the pulse signal , and the frequency of the clock signal is three times, four times, or even ten times the frequency of the pulse signal, the error between the digital signal obtained after integration and the pulse signal will be multiplied, the higher the frequency of the clock signal, the quantized The higher the accuracy of the pulse signal.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列 (PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGA), Field Programmable Gate Array (FPGA), etc.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读存储介质中。存储介质可以是只读存储器,磁盘或光盘等。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本申请的保护范围。The above description is the preferred implementation mode of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the application, some improvements and modifications can also be made, and these improvements and modifications are also considered For the scope of protection of this application.
提供以上实施例仅仅是为了描述本发明的目的,而并非要限制本发明的范围。本发明的范围由所附权利要求限定。不脱离本发明的精神和原理而做出的各种等同替换和修改,均应涵盖在本发明的范围之内。 The above embodiments are provided only for the purpose of describing the present invention, not to limit the scope of the present invention. The scope of the invention is defined by the appended claims. Various equivalent replacements and modifications made without departing from the spirit and principle of the present invention shall fall within the scope of the present invention.

Claims (17)

  1. 一种信号处理方法,其特征在于,包括如下步骤:A signal processing method is characterized in that, comprising the steps of:
    接收模拟信号和参考信号;Receive analog signals and reference signals;
    将所述模拟信号与所述参考信号进行比较;comparing the analog signal with the reference signal;
    根据比较结果输出脉冲信号。A pulse signal is output according to the comparison result.
  2. 根据权利要求1所述的信号处理方法,其特征在于,每隔第一时间间隔输入一次参考信号,所述第一时间间隔为所述参考信号单次输入持续时长的预设倍数,所述预设倍数为大于或等于1的整数。The signal processing method according to claim 1, wherein the reference signal is input every first time interval, the first time interval is a preset multiple of a single input duration of the reference signal, and the preset Let the multiple be an integer greater than or equal to 1.
  3. 根据权利要求2所述的信号处理方法,其特征在于,所述参考信号为阶梯形的斜波信号,所述斜波信号的单次输入持续时长按照如下方式计算得到:The signal processing method according to claim 2, wherein the reference signal is a ladder-shaped ramp signal, and the duration of a single input of the ramp signal is calculated as follows:
    确定所述斜波信号的阶梯数以及每个阶梯之间的第二时间间隔,将所述第二时间间隔与所述阶梯数相乘,得到所述斜波信号的单次输入持续时长。The number of steps of the ramp signal and the second time interval between each step are determined, and the second time interval is multiplied by the number of steps to obtain a single input duration of the ramp signal.
  4. 根据权利要求3所述的信号处理方法,其特征在于,所述将所述模拟信号与所述参考信号进行比较包括:The signal processing method according to claim 3, wherein the comparing the analog signal with the reference signal comprises:
    当检测未输入斜波信号时,输出低电平;When no ramp signal is detected, output low level;
    当检测到输入斜波信号时,计算所述模拟信号的共模电压值,所述斜波信号的电压值以所述共模电压值为最低值正向增大。When the input ramp signal is detected, the common-mode voltage value of the analog signal is calculated, and the voltage value of the ramp signal increases positively with the lowest value of the common-mode voltage value.
  5. 根据权利要求1至4中任一项所述的信号处理方法,其特征在于,还包括以下步骤:The signal processing method according to any one of claims 1 to 4, further comprising the following steps:
    对所述脉冲信号进行积分。The pulse signal is integrated.
  6. 根据权利要求5所述的信号处理方法,其特征在于,所述对所述脉冲信号进行积分包括:The signal processing method according to claim 5, wherein said integrating said pulse signal comprises:
    设定积分工作时段;Set the integral working hours;
    接收所述脉冲信号和时钟信号;receiving the pulse signal and clock signal;
    利用所述时钟信号的脉冲上升沿,将所述脉冲信号的脉冲个数量化成数字信号; Using the pulse rising edge of the clock signal, quantizing the pulse number of the pulse signal into a digital signal;
    输出所述数字信号。output the digital signal.
  7. 根据权利要求6所述的信号处理方法,其特征在于,在所述积分工作时段内,将所述脉冲信号量化后的每一脉冲宽度进行叠加,得到量化后的总脉冲宽度。The signal processing method according to claim 6, characterized in that, within the integral working period, each quantized pulse width of the pulse signal is superimposed to obtain the total quantized pulse width.
  8. 根据权利要求6所述的信号处理方法,其特征在于,所述时钟信号的频率设定至少为所述脉冲信号的频率的两倍。The signal processing method according to claim 6, wherein the frequency of the clock signal is set to be at least twice the frequency of the pulse signal.
  9. 一种信号处理电路,其特征在于,包括信号发生器和比较器,其中,A signal processing circuit, characterized in that it includes a signal generator and a comparator, wherein,
    所述信号发生器,用于产生参考信号并向所述比较器发送所述参考信号;The signal generator is used to generate a reference signal and send the reference signal to the comparator;
    所述比较器,用于接收模拟信号和参考信号;将所述模拟信号与所述参考信号进行比较;根据比较结果输出脉冲信号。The comparator is used to receive an analog signal and a reference signal; compare the analog signal with the reference signal; and output a pulse signal according to the comparison result.
  10. 根据权利要求9所述的信号处理电路,其特征在于,所述信号发生器,还用于:The signal processing circuit according to claim 9, wherein the signal generator is also used for:
    每隔第一时间间隔产生一次参考信号,所述第一时间间隔为所述参考信号单次输入持续时长的预设倍数,所述预设倍数为大于或等于1的整数。The reference signal is generated every first time interval, the first time interval is a preset multiple of a single input duration of the reference signal, and the preset multiple is an integer greater than or equal to 1.
  11. 根据权利要求10所述的信号处理电路,其特征在于,所述参考信号为阶梯形的斜波信号,所述信号发生器还用于:The signal processing circuit according to claim 10, wherein the reference signal is a stepped ramp signal, and the signal generator is also used for:
    确定所述斜波信号的阶梯数以及每个阶梯之间的第二时间间隔,将所述第二时间间隔与所述阶梯数相乘,得到所述斜波信号的单次输入持续时长。The number of steps of the ramp signal and the second time interval between each step are determined, and the second time interval is multiplied by the number of steps to obtain a single input duration of the ramp signal.
  12. 根据权利要求11所述的信号处理电路,其特征在于,The signal processing circuit according to claim 11, wherein,
    所述比较器,还用于当检测未输入斜波信号时,输出低电平;当检测到输入斜波信号时,计算所述模拟信号的共模电压值;The comparator is also used to output a low level when no ramp signal is detected; when an input ramp signal is detected, calculate the common-mode voltage value of the analog signal;
    所述信号发生器,还用于以所述共模电压值为最低值正向增大所述斜波信号的电压值。The signal generator is further configured to positively increase the voltage value of the ramp signal with the lowest value of the common mode voltage value.
  13. 根据权利要求9至12任一项所述的信号处理电路,其特征在于,还包括数字积分器,所述数字积分器用于:The signal processing circuit according to any one of claims 9 to 12, further comprising a digital integrator for:
    接收所述脉冲信号,并对所述脉冲信号进行积分。 The pulse signal is received and integrated.
  14. 根据权利要求13所述的信号处理电路,其特征在于,对于所述对所述脉冲信号进行积分,所述数字积分器还用于:The signal processing circuit according to claim 13, wherein, for said integrating said pulse signal, said digital integrator is further used for:
    设定积分工作时段;Set the integral working hours;
    接收所述脉冲信号和时钟信号;receiving the pulse signal and clock signal;
    利用所述时钟信号的脉冲上升沿,将所述脉冲信号的脉冲个数量化成数字信号;Using the pulse rising edge of the clock signal, quantizing the pulse number of the pulse signal into a digital signal;
    输出所述数字信号。output the digital signal.
  15. 根据权利要求14所述的信号处理电路,其特征在于,在所述积分工作时段内,将所述脉冲信号量化后的每一脉冲宽度进行叠加,得到量化后的总脉冲宽度。The signal processing circuit according to claim 14, characterized in that, within the integral working period, each quantized pulse width of the pulse signal is superimposed to obtain a total quantized pulse width.
  16. 根据权利要求14所述的信号处理电路,其特征在于,所述时钟信号的频率设定至少为所述脉冲信号的频率的两倍。The signal processing circuit according to claim 14, wherein the frequency of the clock signal is set to be at least twice the frequency of the pulse signal.
  17. 一种芯片,其特征在于,包括权利要求9-16任一项所述的信号处理电路。 A chip, characterized by comprising the signal processing circuit according to any one of claims 9-16.
PCT/CN2023/072480 2022-01-26 2023-01-17 Signal processing method and signal processing circuit WO2023143214A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210098229.8 2022-01-26
CN202210098229.8A CN114430274A (en) 2022-01-26 2022-01-26 Signal processing method and signal processing circuit

Publications (1)

Publication Number Publication Date
WO2023143214A1 true WO2023143214A1 (en) 2023-08-03

Family

ID=81313651

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/072480 WO2023143214A1 (en) 2022-01-26 2023-01-17 Signal processing method and signal processing circuit

Country Status (2)

Country Link
CN (1) CN114430274A (en)
WO (1) WO2023143214A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114430274A (en) * 2022-01-26 2022-05-03 深圳市九天睿芯科技有限公司 Signal processing method and signal processing circuit

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5574456A (en) * 1993-07-26 1996-11-12 Samsung Electronics Co., Ltd. Signal processing method and apparatus therefor
CN101888225A (en) * 2009-05-12 2010-11-17 震一科技股份有限公司 Conversion device for controlling output level
CN104300985A (en) * 2013-11-28 2015-01-21 中国航空工业集团公司洛阳电光设备研究所 Integral-type AD converting circuit and method based on pulse counting
CN107643445A (en) * 2017-06-16 2018-01-30 华东师范大学 Amplitude measurement method and system based on high-speed comparator and RC integrating circuit
US20190363727A1 (en) * 2017-02-24 2019-11-28 Teledyne Dalsa B.V. Analog-to-digital converter and electronic device comprising the same
CN114430274A (en) * 2022-01-26 2022-05-03 深圳市九天睿芯科技有限公司 Signal processing method and signal processing circuit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4094460B2 (en) * 2003-03-18 2008-06-04 松下電器産業株式会社 Analog signal level detection circuit
CN103296904B (en) * 2012-02-29 2015-05-13 上海莱狮半导体科技有限公司 Power-factor correction constant current controller and control method
CN104811151B (en) * 2014-01-28 2018-04-10 意法半导体研发(深圳)有限公司 For reducing the apparatus and method of the slicing in amplifier
EP3422570B1 (en) * 2017-06-30 2020-11-25 Nxp B.V. An amplifier circuit
CN111756376B (en) * 2020-06-24 2023-08-15 苏州瑞迈斯科技有限公司 Signal sampling device, system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5574456A (en) * 1993-07-26 1996-11-12 Samsung Electronics Co., Ltd. Signal processing method and apparatus therefor
CN101888225A (en) * 2009-05-12 2010-11-17 震一科技股份有限公司 Conversion device for controlling output level
CN104300985A (en) * 2013-11-28 2015-01-21 中国航空工业集团公司洛阳电光设备研究所 Integral-type AD converting circuit and method based on pulse counting
US20190363727A1 (en) * 2017-02-24 2019-11-28 Teledyne Dalsa B.V. Analog-to-digital converter and electronic device comprising the same
CN107643445A (en) * 2017-06-16 2018-01-30 华东师范大学 Amplitude measurement method and system based on high-speed comparator and RC integrating circuit
CN114430274A (en) * 2022-01-26 2022-05-03 深圳市九天睿芯科技有限公司 Signal processing method and signal processing circuit

Also Published As

Publication number Publication date
CN114430274A (en) 2022-05-03

Similar Documents

Publication Publication Date Title
US8742740B2 (en) Digital peak input voltage detector for a power converter controller
US9287889B2 (en) System and method for dynamic path-mismatch equalization in time-interleaved ADC
CN103296904B (en) Power-factor correction constant current controller and control method
CN110611431B (en) Primary side regulation control system and control method of active clamp flyback converter
US11070091B2 (en) Wireless power transfer based on transmitter coil voltage sensing
WO2023143214A1 (en) Signal processing method and signal processing circuit
US11711015B2 (en) Switching converter with quasi-resonant control and control method thereof
US9685970B1 (en) Analog-to-digital converting system and converting method
CN106992686A (en) A kind of continuous and non-continuous mode constant voltage constant current control circuit and Switching Power Supply
CN112671239B (en) Flyback power supply circuit, secondary side control circuit and control method thereof
TWI811910B (en) Isolated switching converter with secondary side modulation and control method
TWI614511B (en) Test method and system
CN108303579B (en) Voltage detection circuit and method
US10033283B2 (en) Knee point detection for power converter control
US20160226293A1 (en) Demodulation circuit and wireless charging device having the same
CN111413538B (en) Detection circuit and detection method for bridge-free topology current zero-crossing point at wireless charging receiving side
CN206743109U (en) A kind of continuous and non-continuous mode constant voltage constant current control circuit and Switching Power Supply
US6891407B2 (en) Analog signal level detecting apparatus
TWI786620B (en) boost control circuit
CN111726179B (en) Received signal strength detection circuit and method
US20120013312A1 (en) Power Control Device and Method thereof
Daying et al. A Constant Current Digital Control Method for Primary-Side Regulation Half-Bridge LLC Resonant Converter
TWI450071B (en) Adaptive input-current shaping for boost pfc converters
CN112885339A (en) Voice awakening system and voice recognition system
JPH09148851A (en) Switching power source for audio

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23746096

Country of ref document: EP

Kind code of ref document: A1