Signal processor and signal processing method
By using a mixer, pulse width modulation module, and feedback circuit in the signal processor, the feedback path is selectively used according to the signal strength, which solves the problem of total harmonic distortion and noise in audio signals at low signal levels, and achieves efficient noise suppression and signal quality improvement under different signal conditions.
Patent Information
- Application Number
- CN202110660415.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-15
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2041-06-15
AI Technical Summary
Existing digital pulse width modulation methods suffer from total harmonic distortion and noise affecting signal transmission quality when the audio signal is small, resulting in significant background noise. Furthermore, existing technologies increase the clutter floor when suppressing harmonics.
By employing a mixer, pulse width modulation module, power stage circuit, and feedback circuit in a signal processor, feedback paths P1 or P2 are selectively used based on signal magnitude to suppress harmonics and noise. Feedback path P1 is used to reduce noise contribution at low signal levels, thereby improving total harmonic distortion plus noise.
It effectively suppresses harmonics and noise in audio signals under different conditions, reduces total harmonic distortion plus noise, improves signal quality, and avoids additional noise problems caused by the feedback path when the signal is low.
Smart Images

Figure CN115483907B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a signal processor and a signal processing method. BACKGROUND
[0002] The total harmonic distortion plus noise (THD+N) at the output of an audio signal after digital pulse width modulation affects the quality of signal transmission. In the existing digital pulse width modulation method, the noise floor of the path of the audio processing system is increased in order to suppress harmonics, so that the user will feel obvious background noise when the audio signal is small. SUMMARY
[0003] The present application discloses a signal processor for reducing the total harmonic distortion plus noise of an output signal generated from an input signal, which comprises a mixer, a pulse width modulation module, a power stage circuit and a feedback circuit. The mixer is used to generate a mixed signal from the input signal and a feedback signal. The pulse width modulation module is used to modulate the mixed signal to generate a modulated signal output from the output of the pulse width modulation module. The power stage circuit is used to amplify the modulated signal to generate an output signal output from the output of the power stage circuit. The feedback circuit is used to selectively generate a feedback signal to the mixer from the modulated signal or the output signal.
[0004] The present application discloses a signal processing method for reducing the total harmonic distortion plus noise of an output signal generated from an input signal, which comprises the following steps: generating a mixed signal from the input signal and a feedback signal; modulating the mixed signal to generate a modulated signal; amplifying the modulated signal to generate an output signal; and selectively generating a feedback signal from the modulated signal or the output signal.
[0005] The signal processor and the signal processing method of the present application feedback different signals according to the size of the signal to suppress the harmonics and noise of the output signal. Compared with the prior art, the signal processor and the signal processing method of the present application have higher harmonic and noise suppression capability. BRIEF DESCRIPTION OF DRAWINGS
[0006] Various aspects of the present application can be best understood with reference to the following examples and drawings. It should be noted that the various features of the drawings are not drawn to scale. In fact, the dimensions of some of the features can have been intentionally exaggerated or reduced for the sake of clarity. Figure 1 A schematic diagram of a signal processor according to some embodiments of the present application. Figure 2This is a schematic diagram of a signal processor in another embodiment of the present invention. Figure 3 This is a flowchart of a signal processing method in another embodiment of the present invention.
[0007] Symbol Explanation 10: Signal Processor 11: Lift Sampler 12: Mixer 13: Pulse Width Modulation Module 14: Power stage circuit 15: Feedback Circuit 16: Control Circuit LF: Loop Filter OS: Oversampler PWM: Pulse Width Modulator LPF1: Filter LPF2: Filter ADC: Analog-to-Digital Converter P1: Feedback Path P2: Feedback Path MUX: Multitasking R1: Input terminal R2: Input terminal T: Output terminal DE1: Detector DE2: Detector CT: Comparator Sin: Input signal Sup: Upsampled signal Smi: Mixed signal Sft1: Filtered signal Sft2: Filtered signal Sft3: Filtered signal Sft4: Filtered signal after conversion Sos: Oversampled signal Smu: Modulated signal Sout: Output signal Sfb: Feedback signal Sct: Control signal AMP: Amplitude DIF: Difference TH1: First threshold TH2: Second threshold 30: Signal Processing Methods S31: Steps S32: Steps S33: Steps S34: Steps Detailed Implementation
[0008] Figure 1 This is a schematic diagram of an embodiment of the signal processor 10 of the present invention. The signal processor 10 is used to process the input signal Sin to generate an output signal Sout. In some embodiments, the input signal Sin and the output signal Sout are audio signals, and the signal processor 10 generates the output signal Sout to a speaker (not shown in the figure), causing the speaker to play the audio corresponding to the output signal Sout.
[0009] The signal processor 10 includes an upsampler 11, a mixer 12, a pulse width modulation (PWM) module 13, a power stage circuit 14, a feedback circuit 15, and a control circuit 16. The upsampler 11 upsamples the input signal Sin to generate an upsampled signal Sup. The mixer 12 mixes the upsampled signal Sup with the feedback signal Sfb to generate a mixed signal Smi. More specifically, the mixer 12 subtracts the upsampled signal Sup from the feedback signal Sfb to generate the mixed signal Smi. The PWM module 13 modulates the mixed signal Smi to generate a modulated signal Smu, which is output from the output terminal of the PWM module 13. The input signal Sin, the upsampled signal Sup, the feedback signal Sfb, the mixed signal Smi, and the modulated signal Smu are all digital signals. The power stage circuit 14 amplifies the modulated signal Smu and performs digital-to-analog conversion to generate an analog output signal Sout, which is output from the output terminal of the power stage circuit 14. Feedback circuit 15 selects either modulation signal Smu or output signal Sout based on control signal Sct, and generates feedback signal Sfb to mixer 12 based on the selected modulation signal Smu or output signal Sout. Control circuit 16 generates control signal Sct based on input signal Sin.
[0010] The pulse width modulation module 13 includes a loop filter LF, an oversampler OS, and a pulse width modulator PWM. The loop filter LF is used to filter the mixed signal Smi to generate a filtered signal Sft1. The oversampler OS is used to oversample the filtered signal Sft1 to generate an oversampled signal Sos. The pulse width modulator PWM is used to modulate the oversampled signal Sos to generate a modulated signal Smu. In some embodiments, the oversampler OS is an integral-derivative (sigma-delta) modulator.
[0011] Feedback circuit 15 includes a multiplexer (MUX), feedback path P1, and feedback path P2. Feedback path P1 is coupled between the input terminal R1 of the multiplexer (MUX) and the output terminal of the pulse width modulation module 13. Feedback path P2 is coupled between the input terminal R2 of the multiplexer (MUX) and the output terminal of the power stage circuit 14. The output terminal T of the multiplexer (MUX) is coupled to mixer 12.
[0012] Feedback path P1 contains filter LPF1, which is used to filter the modulated signal Smu to generate a filtered signal Sft2 to input R1.
[0013] Feedback path P2 includes a filter LPF2 and an analog-to-digital converter (ADC). Filter LPF2 is coupled between the output of power stage circuit 14 and the ADC. The ADC is coupled between the output of filter LPF2 and the input R2 of the multiplexer MUX. Filter LPF2 filters the output signal Sout to generate a filtered signal Sft3. Since the output signal Sout and the filtered signal Sft3 are analog signals, feedback path P2 can use the ADC to perform analog-to-digital conversion on the filtered signal Sft3 to generate a digitally converted filtered signal Sft4, which is then fed to input R2. In some embodiments, the ADC is an integral-derivative modulation analog-to-digital converter.
[0014] In some embodiments, the passband of filter LPF1 is approximately the same as that of filter LPF2, so the spectrum of the filtered signal Sft2 is approximately the same as the spectrum of the converted filtered signal Sft4.
[0015] The multiplexer MUX is used to selectively couple input terminal R1 or input terminal R2 to output terminal T according to the control signal Sct, that is, to selectively output the filtered signal Sft2 or the converted filtered signal Sft4 as the feedback signal Sfb.
[0016] When the power stage circuit 14 modulates the gain of the signal Smu, due to its linearity issues, the resulting output signal Sout will have harmonics corresponding to the frequency of the modulated signal Smu. Therefore, the signal processor 10 processes the output signal Sout and feeds it back to the mixer 12 using the feedback path P2 of the feedback circuit 15, so as to use the loop of the forward path (including the upsampler 11, mixer 12, pulse width modulation module 13 and power stage circuit 14) and the feedback path P2 to help suppress the harmonics generated by the power stage circuit 14.
[0017] However, the feedback path P2 contributes additional noise, increasing the noise floor of the signal processor 10. When the input signal Sin is large, the presence of the feedback path P2 can significantly suppress the harmonics generated by the power stage circuit 14, i.e., significantly reduce the THD+N of the output signal Sout. However, because the input signal Sin is large, the suppressed harmonics are still greater than the additional noise contributed by the feedback path P2, so the disadvantage of the feedback path P2 potentially contributing additional noise can be ignored.
[0018] However, when the input signal Sin is very small, the harmonics generated by the power stage circuit 14 are significantly reduced, making the drawback of the feedback path P2 contributing additional noise apparent. In other words, when the input signal Sin is low, the noise contributed by the feedback path P2 accounts for most of the THD+N of the output signal Sout. To solve this problem, the present invention proposes... Figure 1 In one embodiment, if the noise contributed by the feedback path P2 is close to or even greater than the harmonic components in the output signal Sout, the signal processor 10 stops using the feedback path P2 and instead uses the feedback path P1, which contributes less noise, to filter the modulated signal Smu and feed it back to the mixer 12.
[0019] In some embodiments, the analog-to-digital converter (ADC) is the primary contributor to noise on the feedback path P2. Because no other ADC is present on the feedback path P1, the noise generated after the signal passes through feedback path P1 is less than the noise generated after passing through feedback path P2. Therefore, when the input signal Sin energy is too low, the signal processor 10 uses the loop between the forward path and feedback path P1 to generate the output signal Sout to reduce noise, thereby reducing the THD+N of the output signal Sout.
[0020] Control circuit 16 generates control signal Sct based on one of the input signal Sin, upsampled signal Sup, mixed signal Smi, or filtered signal Sft1. Specifically, control circuit 16 includes detector DE1 and comparator CT. Control circuit 16 calculates the amplitude AMP of one of the input signal Sin, upsampled signal Sup, mixed signal Smi, or filtered signal Sft1 and transmits it to comparator CT. Comparator CT compares the amplitude AMP with a first threshold TH1. When the amplitude AMP is greater than or equal to the first threshold TH1, comparator CT generates control signal Sct to instruct multiplexer MUX to couple input terminal R2 to output terminal T, so as to output the converted filtered signal Sft4 as feedback signal Sfb. When the amplitude AMP is less than the first threshold TH1, comparator CT generates control signal Sct to instruct multiplexer MUX to couple input terminal R1 to output terminal T, so as to output the filtered signal Sft2 as feedback signal Sfb. In other embodiments, detector DE1 is used to calculate the energy of one of the input signal Sin, upsampled signal Sup, mixed signal Smi, or filtered signal Sft1 and compare it with a first threshold TH1. However, the present invention is not limited thereto, and any technical solution that can determine the signal magnitude is within the scope of the present invention.
[0021] In some embodiments, when the audio signal received by the speaker switches, a pop noise may occur if the signal magnitude difference is too drastic. Control circuit 16 is further used to prevent pop noise when the multiplexer (MUX) switches paths via control signal Sct. Please refer to [link to detailed description]. Figure 2 . Figure 2 The illustrated signal processor 20 is substantially the same as signal processor 10. For ease of understanding, signal processor 20 uses the same reference numerals as signal processor 10.
[0022] Compared to signal processor 10, the control circuit 16 of signal processor 20 further includes detector DE2. Detector DE2 is used to calculate the difference DIF between the amplitude of the filtered signal Sft2 and the amplitude of the converted filtered signal Sft4. Comparator CT is further used to compare the difference DIF with a second threshold TH2. In other embodiments, detector DE2 is used to calculate the difference between the energy of the filtered signal Sft2 at a specific frequency and the energy of the converted filtered signal Sft4 at a specific frequency as the aforementioned difference DIF. However, the present invention is not limited thereto, and any technical solution that can determine the magnitude of the difference between signals is within the scope of the present invention.
[0023] When the difference DIF is greater than or equal to the second threshold TH2, it indicates that the difference in signal amplitude before and after the switch exceeds the allowable range, which may cause a popping sound. The comparator CT generates a control signal Sct to instruct the multiplexer MUX to keep input R1 or input R2 coupled to output T, that is, to maintain the current coupling configuration. In other words, the comparator CT holds the control signal Sct so that the multiplexer MUX does not switch the coupling configuration.
[0024] When the difference DIF is less than the second threshold TH2, it means that the difference in signal amplitude before and after the switching is within the allowable range. The comparator CT generates a control signal Sct to instruct the multiplexer MUX to switch the coupling configuration of the multiplexer MUX based on the result of comparing the amplitude AMP with the first threshold TH1.
[0025] Please refer to Figure 3 . Figure 3 A flowchart of signal processing method 30 is shown. In some embodiments, Figure 1 and Figure 2 Signal processors 10 and 20 utilize signal processing method 30 to reduce the THD+N of the output signal Sout generated from the input signal Sin. Signal processing method 30 includes steps S31, S32, S33, and S34. For ease of understanding, signal processing method 30 follows... Figure 1 and Figure 2The reference numerals in the diagram are used for illustration. Furthermore, the signal processing method 30 is not limited to steps S31 to S34. In a further embodiment, the signal processing method 30 also includes the signal processor 10 and the signal processor 20, as well as the steps described in the related operations above.
[0026] In step S31, a mixed signal Smi is generated based on the input signal Sin and the feedback signal Sfb. In step S32, the mixed signal Smi is modulated to generate a modulated signal Smu. In step S33, the gain is modulated on the signal Smu to generate an output signal Sout. In step S34, a feedback signal Sfb is selectively generated based on either the modulated signal Smu or the output signal Sout. For detailed operation instructions of steps S31 to S34 in signal processors 10 and 20, please refer to [link to relevant documentation]. Figure 1 and Figure 2 The specific implementation examples are not described in detail here.
[0027] The foregoing briefly describes the features of certain embodiments of this invention, enabling those skilled in the art to more fully understand the various forms of the invention. Those skilled in the art should understand that they can readily use the content of this application as a basis to design or modify other processes and structures to achieve the same objectives and / or advantages as these embodiments described herein. Those skilled in the art should understand that these equivalent embodiments still fall within the inventive concept and protection scope of this invention, and various changes, substitutions, and modifications can be made without departing from the spirit and scope of this invention.
Claims
1. A signal processor for reducing total harmonic distortion plus noise in an output signal generated from an input signal, characterized in that, The signal processor includes: An upsampler is used to upsample the input signal to generate an upsampled signal; A mixer is used to generate a mixed signal based on the upsampled signal and the feedback signal; A pulse width modulation module is used to modulate the mixed signal to generate a modulated signal output from the output terminal of the pulse width modulation module. The pulse width modulation module includes a loop filter, which is used to filter the mixed signal to generate a first filtered signal. A power stage circuit is used to amplify the modulated signal to generate the output signal that is output from the output terminal of the power stage circuit. and The feedback circuit is used to selectively generate the feedback signal to the mixer based on a comparison result between the amplitude of one of the input signal, the upsampled signal, the mixed signal, or the first filtered signal and a first threshold. The feedback circuit includes: The first feedback path is coupled to the output terminal of the pulse width modulation module; The second feedback path is coupled to the output terminal of the power stage circuit.
2. The signal processor as described in claim 1, characterized in that, The feedback circuit includes: A multiplexer has a first input terminal, a second input terminal, and an output terminal to output the feedback signal. The multiplexer is used to selectively couple the first input terminal or the second input terminal to the output terminal according to a control signal. Wherein, the first feedback path is coupled between the output terminal of the pulse width modulation module and the first input terminal of the multiplexer; and The second feedback path is coupled between the output terminal of the power stage circuit and the second input terminal of the multiplexer.
3. The signal processor as described in claim 2, characterized in that, The first feedback path includes: First low-pass filter.
4. The signal processor as described in claim 3, characterized in that, The second feedback path includes: Second low-pass filter; An analog-to-digital converter is coupled to the output of the second low-pass filter. The passband of the first low-pass filter is approximately the same as the passband of the second low-pass filter.
5. The signal processor as described in claim 4, characterized in that, The pulse width modulation module includes: An oversampler is used to oversample the first filtered signal to generate an oversampled signal; and A pulse width modulator is used to pulse-width modulate the oversampled signal to generate the modulated signal. The signal processor further includes: The control circuit is configured to compare the amplitude of one of the input signal, the upsampled signal, the mixed signal, or the first filtered signal with the first threshold. When the amplitude is less than the first threshold, the control circuit generates the control signal to instruct the multiplexer to couple the first input terminal to the output terminal of the multiplexer. When the amplitude is greater than or equal to the first threshold, the control circuit generates the control signal to instruct the multiplexer to select to couple the second input terminal to the output terminal of the multiplexer.
6. The signal processor as described in claim 5, characterized in that, The control circuit includes: A first detector is used to calculate the amplitude; and A comparator is used to compare the amplitude with the first threshold to generate the control signal.
7. The signal processor as described in claim 5, characterized in that, The control circuit is also used to compare the difference between the signals at the first input terminal and the second input terminal with a second threshold. When the difference is less than the second threshold, the comparator generates the control signal based on the comparison between the amplitude and the first threshold. When the difference is greater than or equal to the second threshold, the comparator maintains the control signal.
8. The signal processor as described in claim 7, characterized in that, The control circuit also includes: A second detector is used to calculate the difference.
9. The signal processor as described in claim 1, characterized in that, The output signal is an audio signal.
10. A signal processing method for reducing total harmonic distortion plus noise in an output signal generated from an input signal, characterized in that, The signal processing method includes: The input signal is upsampled to generate an upsampled signal; A mixed signal is generated based on the sampling signal and the feedback signal; Modulate the mixed signal to generate a modulated signal; The mixed signal is filtered to generate a first filtered signal; The modulated signal is amplified to generate the output signal; and The feedback signal is selectively generated based on the modulation signal or the output signal, according to the comparison result of the amplitude of one of the input signal, the upsampled signal of the input signal, the mixed signal or the first filtered signal with a first threshold.
Citation Information
Patent Citations
Digital audio converter and amplifier controller
CN109075779A
