EP1606884A2 - Clip detection in pwm amplifier - Google Patents

Clip detection in pwm amplifier

Info

Publication number
EP1606884A2
EP1606884A2 EP04757922A EP04757922A EP1606884A2 EP 1606884 A2 EP1606884 A2 EP 1606884A2 EP 04757922 A EP04757922 A EP 04757922A EP 04757922 A EP04757922 A EP 04757922A EP 1606884 A2 EP1606884 A2 EP 1606884A2
Authority
EP
European Patent Office
Prior art keywords
signal
audio signal
clipping
clip
detector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
EP04757922A
Other languages
German (de)
French (fr)
Inventor
Jack B. Andersen
Larry E. Hand
Wilson E. Taylor
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
D2Audio LLC
Original Assignee
D2Audio LLC
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 D2Audio LLC filed Critical D2Audio LLC
Publication of EP1606884A2 publication Critical patent/EP1606884A2/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/02Speed or phase control by the received code signals, the signals containing no special synchronisation information
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03FAMPLIFIERS
    • H03F1/00Details of amplifiers with only discharge tubes, only semiconductor devices or only unspecified devices as amplifying elements
    • H03F1/52Circuit arrangements for protecting such amplifiers
    • H03F1/523Circuit arrangements for protecting such amplifiers for amplifiers using field-effect devices
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03FAMPLIFIERS
    • H03F3/00Amplifiers with only discharge tubes or only semiconductor devices as amplifying elements
    • H03F3/20Power amplifiers, e.g. Class B amplifiers, Class C amplifiers
    • H03F3/21Power amplifiers, e.g. Class B amplifiers, Class C amplifiers with semiconductor devices only
    • H03F3/217Class D power amplifiers; Switching amplifiers
    • H03F3/2171Class D power amplifiers; Switching amplifiers with field-effect devices
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03FAMPLIFIERS
    • H03F3/00Amplifiers with only discharge tubes or only semiconductor devices as amplifying elements
    • H03F3/20Power amplifiers, e.g. Class B amplifiers, Class C amplifiers
    • H03F3/21Power amplifiers, e.g. Class B amplifiers, Class C amplifiers with semiconductor devices only
    • H03F3/217Class D power amplifiers; Switching amplifiers
    • H03F3/2175Class D power amplifiers; Switching amplifiers using analogue-digital or digital-analogue conversion
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/002Control of digital or coded signals
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G7/00Volume compression or expansion in amplifiers
    • H03G7/007Volume compression or expansion in amplifiers of digital or coded signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors
    • H04L7/005Correction by an elastic buffer

Definitions

  • Pulse Width Modulation or Class D signal amplification technology has e ⁇ isted for a number of years, but has become more popular with the proliferation of Switched Mode Power Supplies (SMPS). Since this technology emerged, there has been an increased interest in applying PWM techniques in signal amplification applications. This is, at least in part, a result of the significant efficiency improvement that can be realized through the use of Class D power output topology instead of the legacy (linear Class AB) power output topology.
  • SMPS Switched Mode Power Supplies
  • FIGURE 1 is a block diagram illustrating some of the basic components of a prior art digital PWM amplification channel. As depicted in the figure, the components of amplification channel 100 comprise a noise shaper 110, a moduiator 120 and an output stage 130.
  • High precision PCM Audio data (typically 16 or more bits wide) is input to noise shaper 110, where it is quantized. Typically, the data is quantized to the order of 5- 10 bits.
  • the quantized output of noise shaper 110 is then input to modulator 1 0, which translates the PCM data to pulse- width- modulated (P M) data.
  • the data produced by modulator 120 comprises a high-side signal and a low-side signal. These signals are used to drive the high-side and low-side FETs (field effect transistors) of output stage 130, which produces an amplified PWM signal.
  • the signals provided to output stage 130 are typically low pass filtered to remove high frequency noise.
  • noise shaper 1 10 consists of a quantizer 210 and a filter 220.
  • An input data stream consisting of PCM audio data combined with filter data produced by filter 220.
  • the transfer function of filter 220 is designed to filter the difference between the input data stream and the output data stream in order to attenuate the noise created by quantizer 210 in the audio band and amplify the noise at higher frequencies.
  • Quantizer 210 is designed to process the combined data by mapping the data to a discrete number of output values. Quantizer 210 thereby performs a rounding function (rounding the received PCM data to the nearest quantized value) and a clipping function (mapping received PCM data outside the quantized range to either the maximum or minimum values that can be represented)
  • quantizer 210 When the input to quantizer 210 exceeds the quantized range of values, the quantizer clips the data.
  • the resulting output of quantizer 210 is similar to clipping in an ordinary analog amplifier, in which the peaks are removed from the signal. This distorts the audio signal represented by the data and produces audio artifacts that can be audible.
  • the clipping of the signal received by quantizer 210 also results in quantization error.
  • Quantization error is the difference between the input to quantizer 210 and the output from quantizer 210. The quantization error increases when quantizer 210 clips the signal. The quantization error can produce instability in the noise shaper, as well as other undesirable audible effects.
  • the problems caused by clipping of the signal in the noise shaper are addressed by using a clipping circuit separate from the quantizer to clip the input signal before it is input to the noise shaper.
  • This clipping circuit is configured to clip the signal at levels which are lower than the levels at which the quantizer in the noise shaper clips. While this does relieve the problem of quantization error that would otherwise occur as a result of clipping by the quantizer, it does not eliminate the distortion of the signal from clipping, and may even aggravate the problem, since the clipping circuit clips the signal at lower levels than the quantizer. Put another way, the use of the clipping circuit has the undesirable effect of limiting the maximum range of the output (the modulation index) more than is strictly necessary.
  • the invention comprises systems and methods for detecting clipping conditions in an audio signal and processing the signal to reduce the clipping conditions.
  • One embodiment of the invention comprises a system for reducing some of the problems of prior art systems, where, instead of clipping the input audio signal at a fixed level, the input audio signal is processed in a variable manner. For instance, at some times, the input audio signal may be clipped, at other times the input audio signal may be compressed, and at still other times the input audio signal may not be modified at all.
  • One embodiment comprises a system including a detector configured to detect a clipping condition in an audio signal and a signal processor coupled to receive a feedback signal from the detector, where the signal processor is configured to modify the audio signal in response to the feedback signal received from the detector.
  • the system includes a noise shaper, a modulator, an output stage and several additional components.
  • these components include a detector for detecting clipping in the noise shaper and a signal processor for processing the audio signal input to the noise shaper based on feedback received from the detector.
  • the signal processor may function to modify the input audio signal in different ways in response to different conditions that are detected by the detector.
  • the system also includes a filter for filtering the output of the detector before this information is provided to the signal processor as feedback. The filtering of the feedback may serve to prevent the signal processor from modifying the audio signal if the clipping of the audio signal occurs only occasionally, while allowing the signal processor to modify the audio signal if the clipping of the audio signal occurs more frequently.
  • the system also includes a flag circuit coupled between the filter and the signal processor.
  • the flag circuit is configured to receive the filtered feedback signal from the filter and to assert an output signal that is provided to the signal processor when the filtered feedback signal is asserted.
  • the output signal produced by the flag circuit remains asserted until the signal processor resets the flag circuit. This provides an even more stable feedback signal to the signal processor than simply filtering the signal.
  • One alternative embodiment comprises a method including the steps of detecting a clipping condition in an audio signal and modifying the audio signal in response to detecting the clipping condition.
  • both the clipping conditions and the response to the detection of the clipping condition may vary from one embodiment to another.
  • the method may be implemented in a sample rate converter for a digital audio amplifier. Numerous additional embodiments are also possible.
  • FIGURE 1 is a block diagram illustrating some of the basic components of a prior art digital
  • FIGURE 2 is a functional block diagram illustrating the structure of a noise shaper in accordance with the prior art.
  • FIGURE 3 is a functional block diagram illustrating a portion of a digital audio amplification channel in accordance with one embodiment.
  • FIGURE 4 is a functional block diagram illustrating the use of a clip detector and a signal processor in accordance with one embodiment.
  • FIGURE 5 is a diagram illustrating the response of a signal processor to an input audio signal in accordance with one embodiment.
  • FIGURE 6 is a functional block diagram illustrating the use of a clip detector, filter and signal processor in accordance with an alternative embodiment.
  • FIGURE 7 is a functional block diagram illustrating the use of a clip detector, clip filter, clip flag and signal processor in accordance with another alternative embodiment.
  • One embodiment of the invention comprises a system for reducing some of the problems of prior art systems, where, instead of clipping the input audio signal at a fixed level, the input audio signal is processed in a variable manner. For instance, at some times, the input audio signal may be clipped, at other times the input audio signal may be compressed, and at still other times the input audio signal may not be modified at all.
  • the system includes a noise shaper, a modulator, an output stage and several additional components. These components include a detector for detecting clipping in the noise shaper and a signal processor for processing the audio signal input to the noise shaper based on feedback received from the detector.
  • the signal processor may function to modify the input audio signal in different ways in response to different conditions that are detected by the detector.
  • the system also includes a filter for filtering the output of the detector before this information is provided to the signal processor as feedback.
  • the filtering of the feedback may serve to prevent the signal processor from modifying the audio signal if the clipping of the audio signal occurs only occasionally, while allowing the signal processor to modify the audio signal if the clipping of the audio signal occurs more frequently.
  • the system also includes a flag circuit coupled between the filter and the signal processor. The flag circuit is configured to receive the filtered feedback signal from the filter and to assert an output signal that is provided to the signal processor when the filtered feedback signal is asserted. The output signal produced by the flag circuit remains asserted until the signal processor resets the flag circuit. This provides an even more stable feedback signal to the signal processor than simply filtering the signal.
  • FIGURE 3 a functional block diagram illustrating a portion of a digital audio amplification channel in accordance with one embodiment is shown.
  • a PCM digital audio signal is input to clip prevention unit 310.
  • Clip prevention unit 310 may or may not process the input audio signal, depending upon the feedback is derived from noise shaper 320.
  • the audio signal is quantized by noise shaper 320, it is provided to modulator 330, which converts it to a pair of pulse width modulated signals. These signals are then provided to output stage 340, which generates a PWM audio signal.
  • the audio data is provided to the system in the form of a pulse code modulated, or PCM signal.
  • Pulse code modulation is a scheme for encoding analog data.
  • PCM signals are binary. That is, there are only two possible states, represented by logic 1 (high) and logic 0 (low), no matter how complex the analog waveform is.
  • Using a PCM scheme it is possible to digitize all forms of analog data, including audio data.
  • the amplitude of the analog signal is sampled at regular time intervals.
  • the sampling rate is several times the maximum frequency of the analog waveform.
  • the instantaneous amplitude of the analog signal at each sampling is quantized by rounding it to the nearest of a set of specific, predetermined levels.
  • the number of levels is a power of 2
  • the sampled amplitude is represented by a set of binary digits (bits) corresponding to the power to which 2 is raised. For example, if the analog signal is quantized to 64 (2 6) levels, each sample is represented by a set of six bits. If the analog signal is quantized to 1024 (2 ⁇ 10) levels, each sample is represented by a set often bits.
  • the PCM audio is processed by signal processor 310 and passed to noise shaper 320.
  • Noise shaper 320 has a quantizer 321 and a filter 322.
  • the PCM audio data is typically high precision data that is quantized at 16 bits or more.
  • the purpose of quantizer 321 is to quantize the audio data to a lower number of bits. Typically, quantizer 321 produces 5- to 10-bit audio data.
  • the purpose of filter 322 is to shift the noise created by quantizer 321 out of the audio band. In other words, and filter 322 attenuates the noise in the audio band, while amplifying the noise outside the audio band. This is accomplished by taking the difference between the audio signal input to noise shaper 320 and the audio signal output by quantizer 321, filtering the resulting difference signal and adding this to the audio signal before it is input to quantizer 321.
  • Quantizer 321 in the process of re-quantizing the audio data, both rounds the data and potentially clips the data.
  • the rounding occurs because of the levels at which the input audio data is originally quantized probably do not match the levels at which quantizer 321 re-quantizes the data.
  • the clipping may occur because the input audio data may include values that are outside the range that can be presented on the output of quantizer 321. These values that are outside this range are mapped to either the maximum or minimum values that can be represented the quantizer output.
  • quantizer 321 clips the signal. In other words, the peaks are removed from the signal. This clipping is similar to the clipping that occurs in an ordinary analog amplifier. The removal of the peaks from the signal distorts the signal and, if the distortion of the signal is substantial enough, it can be audible. As noted above, the clipping of the signal also results in increased quantization error (the difference between the input to quantizer 321 and the output of the quantizer). If the quantization error is great enough, the noise shaper can become unstable.
  • “in” is the input audio signal
  • “out” is the output audio signal
  • “max” is the maximum output level of the signal produced by quantizer 321
  • “min” is the minimum output level of the quantizer signal
  • “delta” is the step size of the quantization
  • “round” is a function that returns its input rounded to the nearest integer value.
  • “Max” and “min” are multiples of “delta”.
  • “out” can assume any of (max-min)/delta+l possible values in the range [min;max].
  • the maximum values that define the range of quantizer 321 determine the minimum and maximum pulse widths that will be generated by modulator 330. Normally, these values are set to match the minimum and maximum pulse widths that can be handled by a driver and the FETs in output stage 340 in a given implementation.
  • the signal generated by quantizer 321 is output by noise shaper 320 and provided to modulator 330.
  • the modulator 330 translates the re-quantized PCM data to pulse width modulated (PWM) data.
  • PWM pulse width modulated
  • each set of bits corresponding to an audio data sample in the PCM data stream is converted to a pulse having a width proportional to the sample.
  • output stage 340 includes two field effect transistors (FETs). Each of the signals produced by modulator 330 is used to drive one of the FETs in output stage 340.
  • each of the output signals produced by modulator 330 is low pass filtered to remove high frequency noise.
  • the output of the noise shaper is typically processed to provide support for output stage protection and edge placement.
  • the output stage may have any of a number of different configurations, such as a half bridge N+N FET configuration. Alternative configurations may use N or P FETs, full bridge configurations, etc. Other noise shaper configurations are also possible. Many such variations will be apparent to persons skilled in the art of the invention upon reading the present disclosure.
  • noise shaper 320, modulator 330 and output stage 340 are the same as the corresponding components of prior art system 100, described above in relation to FIGURE 1.
  • noise shaper 320 receives the PCM audio signal, which may be a 16-bit signal, and quantizes the signal to a smaller number of bits.
  • the system illustrated in FIGURE 3 differs from the system of FIGURE 1 in the use of clip prevention unit 310.
  • Clip prevention unit 310 does not simply clip the input audio signal at a fixed level, but instead processes the input audio signal to clip or otherwise modify the audio signal as needed to alleviate the problems described above in connection with FIGURE 1. In other words, the manner in which clip prevention unit 310 operates is dependent upon the audio signal itself. If the input audio signal has a relatively low modulation index and therefore does not contain any peaks that exceed the range of signals that can be quantized by noise shaper 320, clip prevention unit 310 may not modify the input audio signal at all before providing the signal to noise shaper 320.
  • clip prevention unit 310 may significantly modify the audio signal before providing the modified signal to noise shaper 320. If the input audio signal has a moderate modulation index, clip prevention unit 310 may function to occasionally modify portions of the audio signal, while leaving others unmodified.
  • clip prevention unit 410 comprises a clip detector 41 1 and a signal processor 412.
  • a PCM audio signal is input to signal processor 412, which processes the signal in accordance with the feedback received from clip detector 41 1 and then forwards the processed signal to noise shaper 420.
  • Noise shaper 420 quantizes the signal and forwards it to modulator 430, which provides a pair of signals to drive output stage 440.
  • clip detector 41 1 receives the same signal that is input to quantizer 421 of noise shaper 420.
  • Clip detector 41 1 processes this input signal in parallel with quantizer 421 to detect conditions that indicate that signal processor 411 should modify the input PCM audio data. In one embodiment, this condition may simply be that the audio signal exceeds the range that quantizer 421 can re-quantize without clipping the signal. In other words, clip detector 41 1 detects clipping in quantizer 421.
  • minclip is set to the minimum clipping threshold of the quantizer ("min,” as used in the algorithmic description of the quantizer set forth above) and maxclip is set to the maximum clipping threshold of the quantizer ("max,”as used in the algorithmic description of the quantizer).
  • the output signal (“clip") generated by clip detector 41 1 is provided as feedback to signal processor 412 which is positioned in front of noise shaper 420.
  • the purpose of signal processor 412 is to limit the range of the audio signal that is input to noise shaper 420, but to do so in a more "intelligent” fashion than simply clipping the signal at a fixed level.
  • signal processor 412 is configured to act as a compressor-limiter.
  • signal processor 412 is configured to compress at least a portion of the audio signal in order to avoid or minimize the clipping that would otherwise occur in noise shaper 420. This may, in many instances, be easy to implement because the amplifier in which the invention is implemented may already have a compressor-limiter circuit that can be used by signal processor 412 to achieve this function.
  • FIGURE 5 is a diagram illustrating the response of signal processor 412 to an input audio signal.
  • the response of signal processor 412 is shown by curve 510.
  • Response curve 510 can be viewed as having three segments.
  • the first segment is the response to an input that is in the range from 0 to a first threshold 505 (corresponding to an output level 501).
  • Input audio levels in this range are linearly output at a 1 : 1 ratio. In other words, the output equals the input. If the input is in the range from the first threshold 505 to a second threshold 506, the output is compressed. Put another way, the output level is less than the input level, but is not clipped.
  • the output level is reduced from the 1 : 1 output that is indicated in the figure by a dotted line extending upward from the first segment of response curve 510.
  • input levels above the second threshold 506 are clipped at a maximum output level 502.
  • the response can alternatively be as simple as a clipping function, or can be more complex, having additional response segments, smooth response curves, or other variations.
  • the response function also changes in response to the feedback received from clip detector 41 1 (or clip filters or clip flag circuits, as will be described in detail below).
  • signal processor 412 can be placed before, between or after various other functional blocks of the amplifier channel, such as the interpolation and PWM linearity correction blocks mentioned above.
  • Signal processor 412 can also be implemented in various ways. For instance, signal processor 412 can be implemented in hardware using logic gates. Alternatively, and possibly a more simple and flexible solution, is to implement signal processor 412 in software running on a programmable digital signal processor (DSP), which would typically already be present in a digital amplifier.
  • DSP programmable digital signal processor
  • clip prevention unit 610 comprises a clip detector 61 1, a clip filter 613 and a signal processor 612.
  • signal processor 612 processes the signal in accordance with received feedback.
  • the feedback is received from clip detector 61 1 via filter 613.
  • Signal processor 612 forwards the processed signal to noise shaper 620, which quantizes the signal and forwards it to modulator 630.
  • Modulator 630 then provides a pair of signals to drive output stage 640.
  • clip detector 61 1 receives the signal that is input to quantizer 621 of noise shaper 620 and processes this signal in parallel with quantizer 621.
  • Clip detector 621 detects clip conditions indicating that signal processor 61 1 should modify the input PCM audio data and generates a corresponding signal. This signal is provided to clip filter 613. After being filtered by clip filter 613, the signal is provided as feedback to signal processor 612, which can then modify the input audio signal as indicated by this feedback.
  • the modification of the audio signal by signal processor 612 is, as described above, variable according to the received feedback.
  • quantizer 621 in noise shaper 620 may clip the audio signal only occasionally. This may be due, for example, to the noise shaping of the signal or due to short, high input spikes. Depending on its design, noise shaper 620 may be able to handle clipping of a few of these spikes without becoming unstable. Consequently, compressing the input in these cases would unnecessarily limit the output signal.
  • Clip filter 613 can therefore be employed to filter out single occurrences or short bursts of "clip detections" and prevent them from triggering the modification of the input audio signal by signal processor 612. In one embodiment, an adequate implementation of clip filter 613 can be provided using a counter.
  • clip here is the output from clip detector 61 1.
  • the internal state variable “clipcnt” counts the number of continuous active “clip” inputs, “clipcnt” is initialized to 0 before processing begins.
  • clipcnt reaches the value "clipmax”
  • the counter stops counting and sets the “clipfiltered” output to true, “clipfiltered” remains active until the input "clip” becomes inactive. This will also reset "clipcnt” to 0.
  • clip filter can be implemented in various ways.
  • the various possible implementations can based on hardware, software, or combinations thereof. These implementations can use various different types of algorithms, such as IIR, FIR, majority vote, up/down count, and so on.
  • IIR IIR
  • FIR FIR
  • majority vote up/down count
  • clip filter 613 when clip filter 613 is implemented in fixed hardware, it may be advantageous to make the limit "clipmax" programmable, so that this value can be adjusted for individual applications of the circuit.
  • clip prevention unit 710 comprises a clip detector 71 1 , a clip filter 713, a clip flag circuit 714 and a signal processor 712.
  • a PCM audio signal is input to signal processor 712, which processes the signal in accordance with received feedback.
  • the feedback is received from clip detector 71 1 and filter 713 via clip flag circuit 714.
  • Signal processor 712 forwards the processed signal to noise shaper 720, which quantizes the signal and forwards it to modulator 730. Modulator 730 then provides a pair of signals to drive output stage 740.
  • clip detector 71 1 receives the signal that is input to quantizer 721 of noise shaper 720 and processes this signal in parallel with quantizer 721.
  • Clip detector 721 detects clip conditions and generates a corresponding signal that is provided to clip filter 713. After being filtered by clip filter 713, the signal is provided to clip flag circuit 714. If the filtered signal received from filter 713 is asserted (indicating that the audio signal input to signal processor 712 should be modified), clip flag circuit 714 asserts an output signal and maintains this signal until clip flag circuit 714 is reset by signal processor 712. The output signal generated by clip flag circuit 714 is provided as feedback to signal processor 712. Signal processor 712 can then variably modify the input audio signal as indicated by this feedback.
  • Clip flag circuit 714 may be inserted between clip filter 713 (or clip detector 71 1) and signal processor 712, or it may be incorporated into one of these components.
  • the purpose of clip flag circuit 714 is to store the information that the input audio signal was clipped either once or long enough to trigger the clip filter.
  • signal processor 712 Once signal processor 712 has acted on (in response to) the assertion of flag circuit 714, it activates a "clear" signal to flag circuit 714 to clear the flag.
  • the output of clip flag circuit 714 can be polled or handled using interrupts.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGAs field programmable gate arrays
  • a general purpose processor may be any conventional processor, controller, microcontroller, state machine or the like.
  • a processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
  • a software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may be integral to the processor.
  • the processor and the storage medium may reside in an ASIC.
  • the ASIC may reside in a user terminal.
  • the processor and the storage medium may reside as discrete components in a user terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Amplifiers (AREA)
  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)

Abstract

Systems and methods for detecting clipping conditions in an audio signal and processing the signal to reduce the clipping conditions. In one embodiment, a system comprises a noise shaper, a modulator, an output stage and other components. A detector detects clipping in the noise shaper and a signal processor processes the audio signal input to the noise shaper based on feedback received from the detector. The signal processor may function to modify the input audio signal in different ways in response to different conditions that are detected by the detector. A filter may be included to filter tie output of the detector before being provided to the signal processor. A flag circuit may be coupled between the filter and the signal processor to assert an output signal until the signal processor resets the flag circuit.

Description

DESCRIPTION SYSTEM AND METHOD FOR CLIP DETECTION AND SIGNAL MODIFICATION
Background of Invention Pulse Width Modulation (PWM) or Class D signal amplification technology has eκisted for a number of years, but has become more popular with the proliferation of Switched Mode Power Supplies (SMPS). Since this technology emerged, there has been an increased interest in applying PWM techniques in signal amplification applications. This is, at least in part, a result of the significant efficiency improvement that can be realized through the use of Class D power output topology instead of the legacy (linear Class AB) power output topology.
Early attempts to develop signal amplification applications utilized the same approach to amplification that was being used in the early SMPS. More particularly, these attempts utilized analog modulation schemes that resulted in very low performance applications. These applications were very complex and costly to implement. Consequently, these solutions were not widely accepted. Prior art analog implementations of Class D technology have therefore been unable to displace legacy Class AB amplifiers in mainstream amplifier applications.
Recently, digital PWM modulation schemes have surfaced. These schemes use Sigma-Delta modulation techniques to generate the PWM signals used in the newer digital Class D implementations. These digital PWM schemes, however, do little to offset the major barriers to integration of PWM modulators into total amplifier solutions. Class D technology has therefore continued to be unable to displace legacy Class AB amplifiers tn mainstream applications.
One of the problems that exists in current PWM amplifier systems is that the processing of audio signals cannot be easily controlled to achieve optimal performance. This problem can be illustrated using the diagram of FIGURE 1. FIGURE 1 is a block diagram illustrating some of the basic components of a prior art digital PWM amplification channel. As depicted in the figure, the components of amplification channel 100 comprise a noise shaper 110, a moduiator 120 and an output stage 130.
High precision PCM Audio data (typically 16 or more bits wide) is input to noise shaper 110, where it is quantized. Typically, the data is quantized to the order of 5- 10 bits. The quantized output of noise shaper 110 is then input to modulator 1 0, which translates the PCM data to pulse- width- modulated (P M) data. Typically, the data produced by modulator 120 comprises a high-side signal and a low-side signal. These signals are used to drive the high-side and low-side FETs (field effect transistors) of output stage 130, which produces an amplified PWM signal. The signals provided to output stage 130 are typically low pass filtered to remove high frequency noise. Referring to FIGURE 2, a functional block diagram illustrating the structure of a noise shaper in accordance with the prior art is shown. It can be seen from the figure that noise shaper 1 10 consists of a quantizer 210 and a filter 220. An input data stream consisting of PCM audio data combined with filter data produced by filter 220. The transfer function of filter 220 is designed to filter the difference between the input data stream and the output data stream in order to attenuate the noise created by quantizer 210 in the audio band and amplify the noise at higher frequencies. Quantizer 210 is designed to process the combined data by mapping the data to a discrete number of output values. Quantizer 210 thereby performs a rounding function (rounding the received PCM data to the nearest quantized value) and a clipping function (mapping received PCM data outside the quantized range to either the maximum or minimum values that can be represented)
When the input to quantizer 210 exceeds the quantized range of values, the quantizer clips the data. The resulting output of quantizer 210 is similar to clipping in an ordinary analog amplifier, in which the peaks are removed from the signal. This distorts the audio signal represented by the data and produces audio artifacts that can be audible. The clipping of the signal received by quantizer 210 also results in quantization error. Quantization error is the difference between the input to quantizer 210 and the output from quantizer 210. The quantization error increases when quantizer 210 clips the signal. The quantization error can produce instability in the noise shaper, as well as other undesirable audible effects.
Conventionally, the problems caused by clipping of the signal in the noise shaper are addressed by using a clipping circuit separate from the quantizer to clip the input signal before it is input to the noise shaper. This clipping circuit is configured to clip the signal at levels which are lower than the levels at which the quantizer in the noise shaper clips. While this does relieve the problem of quantization error that would otherwise occur as a result of clipping by the quantizer, it does not eliminate the distortion of the signal from clipping, and may even aggravate the problem, since the clipping circuit clips the signal at lower levels than the quantizer. Put another way, the use of the clipping circuit has the undesirable effect of limiting the maximum range of the output (the modulation index) more than is strictly necessary.
Summary of Invention One or more of the problems outlined above may be solved by the various embodiments of the invention. Broadly speaking, the invention comprises systems and methods for detecting clipping conditions in an audio signal and processing the signal to reduce the clipping conditions.
One embodiment of the invention comprises a system for reducing some of the problems of prior art systems, where, instead of clipping the input audio signal at a fixed level, the input audio signal is processed in a variable manner. For instance, at some times, the input audio signal may be clipped, at other times the input audio signal may be compressed, and at still other times the input audio signal may not be modified at all. One embodiment comprises a system including a detector configured to detect a clipping condition in an audio signal and a signal processor coupled to receive a feedback signal from the detector, where the signal processor is configured to modify the audio signal in response to the feedback signal received from the detector. In one embodiment, the system includes a noise shaper, a modulator, an output stage and several additional components. These components include a detector for detecting clipping in the noise shaper and a signal processor for processing the audio signal input to the noise shaper based on feedback received from the detector. The signal processor may function to modify the input audio signal in different ways in response to different conditions that are detected by the detector. In one embodiment, the system also includes a filter for filtering the output of the detector before this information is provided to the signal processor as feedback. The filtering of the feedback may serve to prevent the signal processor from modifying the audio signal if the clipping of the audio signal occurs only occasionally, while allowing the signal processor to modify the audio signal if the clipping of the audio signal occurs more frequently. In one embodiment, the system also includes a flag circuit coupled between the filter and the signal processor. The flag circuit is configured to receive the filtered feedback signal from the filter and to assert an output signal that is provided to the signal processor when the filtered feedback signal is asserted. The output signal produced by the flag circuit remains asserted until the signal processor resets the flag circuit. This provides an even more stable feedback signal to the signal processor than simply filtering the signal. One alternative embodiment comprises a method including the steps of detecting a clipping condition in an audio signal and modifying the audio signal in response to detecting the clipping condition. As with the embodiments noted above, both the clipping conditions and the response to the detection of the clipping condition may vary from one embodiment to another. In one embodiment, the method may be implemented in a sample rate converter for a digital audio amplifier. Numerous additional embodiments are also possible.
Brief Description of Drawings Other objects and advantages of the invention may become apparent upon reading the following detailed description and upon reference to the accompanying drawings. FIGURE 1 is a block diagram illustrating some of the basic components of a prior art digital
PWM amplification channel.
FIGURE 2 is a functional block diagram illustrating the structure of a noise shaper in accordance with the prior art.
FIGURE 3 is a functional block diagram illustrating a portion of a digital audio amplification channel in accordance with one embodiment. FIGURE 4 is a functional block diagram illustrating the use of a clip detector and a signal processor in accordance with one embodiment.
FIGURE 5 is a diagram illustrating the response of a signal processor to an input audio signal in accordance with one embodiment. FIGURE 6 is a functional block diagram illustrating the use of a clip detector, filter and signal processor in accordance with an alternative embodiment.
FIGURE 7 is a functional block diagram illustrating the use of a clip detector, clip filter, clip flag and signal processor in accordance with another alternative embodiment.
While the invention is subject to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and the accompanying detailed description. It should be understood, however, that the drawings and detailed description are not intended to limit the invention to the particular embodiments which are described. This disclosure is instead intended to cover all modifications, equivalents and alternatives falling within the scope of the present invention as defined by the appended claims.
Detailed Description One or more embodiments of the invention are described below. It should be noted that these and any other embodiments described below are exemplary and are intended to be illustrative of the invention rather than limiting. As described herein, various embodiments of the invention comprise systems and methods for detecting clipping conditions in an audio signal and processing the signal to reduce the clipping conditions.
One embodiment of the invention comprises a system for reducing some of the problems of prior art systems, where, instead of clipping the input audio signal at a fixed level, the input audio signal is processed in a variable manner. For instance, at some times, the input audio signal may be clipped, at other times the input audio signal may be compressed, and at still other times the input audio signal may not be modified at all. In one embodiment, the system includes a noise shaper, a modulator, an output stage and several additional components. These components include a detector for detecting clipping in the noise shaper and a signal processor for processing the audio signal input to the noise shaper based on feedback received from the detector. The signal processor may function to modify the input audio signal in different ways in response to different conditions that are detected by the detector.
In one embodiment, the system also includes a filter for filtering the output of the detector before this information is provided to the signal processor as feedback. The filtering of the feedback may serve to prevent the signal processor from modifying the audio signal if the clipping of the audio signal occurs only occasionally, while allowing the signal processor to modify the audio signal if the clipping of the audio signal occurs more frequently. In one embodiment, the system also includes a flag circuit coupled between the filter and the signal processor. The flag circuit is configured to receive the filtered feedback signal from the filter and to assert an output signal that is provided to the signal processor when the filtered feedback signal is asserted. The output signal produced by the flag circuit remains asserted until the signal processor resets the flag circuit. This provides an even more stable feedback signal to the signal processor than simply filtering the signal.
Various alternative embodiments will be described below, and still other embodiments will be apparent to persons of ordinary skill in the art of the invention.
Referring to FIGURE 3, a functional block diagram illustrating a portion of a digital audio amplification channel in accordance with one embodiment is shown. In this embodiment, a PCM digital audio signal is input to clip prevention unit 310. Clip prevention unit 310 may or may not process the input audio signal, depending upon the feedback is derived from noise shaper 320. After the audio signal is quantized by noise shaper 320, it is provided to modulator 330, which converts it to a pair of pulse width modulated signals. These signals are then provided to output stage 340, which generates a PWM audio signal.
As shown in FIGURE 3, the audio data is provided to the system in the form of a pulse code modulated, or PCM signal. Pulse code modulation is a scheme for encoding analog data. PCM signals are binary. That is, there are only two possible states, represented by logic 1 (high) and logic 0 (low), no matter how complex the analog waveform is. Using a PCM scheme, it is possible to digitize all forms of analog data, including audio data.
To obtain a PCM audio stream from an analog waveform, the amplitude of the analog signal is sampled at regular time intervals. The sampling rate is several times the maximum frequency of the analog waveform. The instantaneous amplitude of the analog signal at each sampling is quantized by rounding it to the nearest of a set of specific, predetermined levels. The number of levels is a power of 2, and the sampled amplitude is represented by a set of binary digits (bits) corresponding to the power to which 2 is raised. For example, if the analog signal is quantized to 64 (2 6) levels, each sample is represented by a set of six bits. If the analog signal is quantized to 1024 (2Λ10) levels, each sample is represented by a set often bits.
The PCM audio is processed by signal processor 310 and passed to noise shaper 320. Noise shaper 320 has a quantizer 321 and a filter 322. The PCM audio data is typically high precision data that is quantized at 16 bits or more. The purpose of quantizer 321 is to quantize the audio data to a lower number of bits. Typically, quantizer 321 produces 5- to 10-bit audio data. The purpose of filter 322 is to shift the noise created by quantizer 321 out of the audio band. In other words, and filter 322 attenuates the noise in the audio band, while amplifying the noise outside the audio band. This is accomplished by taking the difference between the audio signal input to noise shaper 320 and the audio signal output by quantizer 321, filtering the resulting difference signal and adding this to the audio signal before it is input to quantizer 321.
Quantizer 321 , in the process of re-quantizing the audio data, both rounds the data and potentially clips the data. The rounding occurs because of the levels at which the input audio data is originally quantized probably do not match the levels at which quantizer 321 re-quantizes the data. The clipping may occur because the input audio data may include values that are outside the range that can be presented on the output of quantizer 321. These values that are outside this range are mapped to either the maximum or minimum values that can be represented the quantizer output.
When the input audio signal exceeds the range of quantizer 321, quantizer 321 clips the signal. In other words, the peaks are removed from the signal. This clipping is similar to the clipping that occurs in an ordinary analog amplifier. The removal of the peaks from the signal distorts the signal and, if the distortion of the signal is substantial enough, it can be audible. As noted above, the clipping of the signal also results in increased quantization error (the difference between the input to quantizer 321 and the output of the quantizer). If the quantization error is great enough, the noise shaper can become unstable.
The operation of quantizer 321 can therefore be described algorithmically in the following manner: if (in > max) out = max else if (in < min) out = min else out = delta*round(in/delta)
As used here, "in" is the input audio signal, "out" is the output audio signal, "max" is the maximum output level of the signal produced by quantizer 321 , "min" is the minimum output level of the quantizer signal, "delta" is the step size of the quantization and "round" is a function that returns its input rounded to the nearest integer value. "Max" and "min" are multiples of "delta". After quantization, "out" can assume any of (max-min)/delta+l possible values in the range [min;max]. The maximum values that define the range of quantizer 321 (the values of "min" and "max") determine the minimum and maximum pulse widths that will be generated by modulator 330. Normally, these values are set to match the minimum and maximum pulse widths that can be handled by a driver and the FETs in output stage 340 in a given implementation.
The signal generated by quantizer 321 is output by noise shaper 320 and provided to modulator 330. The modulator 330 translates the re-quantized PCM data to pulse width modulated (PWM) data. In other words, each set of bits corresponding to an audio data sample in the PCM data stream is converted to a pulse having a width proportional to the sample. In the case of modulator 330, two output signals are produced. These signals are identical, except that they are inverted with respect to each other. In this embodiment, output stage 340 includes two field effect transistors (FETs). Each of the signals produced by modulator 330 is used to drive one of the FETs in output stage 340. In one embodiment, each of the output signals produced by modulator 330 is low pass filtered to remove high frequency noise.
It will be appreciated by one skilled in the art, that this is a highly simplified description. Typically, interpolation and correction is performed on the PCM data to correct for non-linearities in the pulse width modulation processing before the data is input to the noise shaper. Further, the output of the noise shaper is typically processed to provide support for output stage protection and edge placement. The output stage may have any of a number of different configurations, such as a half bridge N+N FET configuration. Alternative configurations may use N or P FETs, full bridge configurations, etc. Other noise shaper configurations are also possible. Many such variations will be apparent to persons skilled in the art of the invention upon reading the present disclosure. In one embodiment, noise shaper 320, modulator 330 and output stage 340 are the same as the corresponding components of prior art system 100, described above in relation to FIGURE 1. Thus, noise shaper 320 receives the PCM audio signal, which may be a 16-bit signal, and quantizes the signal to a smaller number of bits.
The system illustrated in FIGURE 3 differs from the system of FIGURE 1 in the use of clip prevention unit 310. Clip prevention unit 310 does not simply clip the input audio signal at a fixed level, but instead processes the input audio signal to clip or otherwise modify the audio signal as needed to alleviate the problems described above in connection with FIGURE 1. In other words, the manner in which clip prevention unit 310 operates is dependent upon the audio signal itself. If the input audio signal has a relatively low modulation index and therefore does not contain any peaks that exceed the range of signals that can be quantized by noise shaper 320, clip prevention unit 310 may not modify the input audio signal at all before providing the signal to noise shaper 320. If, the other hand, the input audio signal has a relatively high modulation index and has peaks that will be clipped by quantizer 321 of noise shaper 320, clip prevention unit 310 may significantly modify the audio signal before providing the modified signal to noise shaper 320. If the input audio signal has a moderate modulation index, clip prevention unit 310 may function to occasionally modify portions of the audio signal, while leaving others unmodified.
Referring to FIGURE 4, a functional block diagram illustrating the use of a clip detector and a signal processor in accordance with one embodiment is shown. In this embodiment, clip prevention unit 410 comprises a clip detector 41 1 and a signal processor 412. A PCM audio signal is input to signal processor 412, which processes the signal in accordance with the feedback received from clip detector 41 1 and then forwards the processed signal to noise shaper 420. Noise shaper 420 quantizes the signal and forwards it to modulator 430, which provides a pair of signals to drive output stage 440.
In this embodiment, clip detector 41 1 receives the same signal that is input to quantizer 421 of noise shaper 420. Clip detector 41 1 processes this input signal in parallel with quantizer 421 to detect conditions that indicate that signal processor 411 should modify the input PCM audio data. In one embodiment, this condition may simply be that the audio signal exceeds the range that quantizer 421 can re-quantize without clipping the signal. In other words, clip detector 41 1 detects clipping in quantizer 421. The operation of clip detector 411 can be described in algorithmic form in the following manner: if (in > maxclip) clip = true else if (in < minclip) clip = true else clip = false
As used here, "in" is the input to the quantizer, "maxclip" and "minclip" are the threshold levels at which clipping begins to occur, and the signal "clip" which is output by clip detector 41 1 is set to "true" when the input ("in") is outside the allowed range [minclip;maxclip] and "false" otherwise. In general "maxclip" and "minclip" can be set arbitrarily. In a preferred embodiment, minclip is set to the minimum clipping threshold of the quantizer ("min," as used in the algorithmic description of the quantizer set forth above) and maxclip is set to the maximum clipping threshold of the quantizer ("max,"as used in the algorithmic description of the quantizer). This allows an efficient implementation where the quantizer and clip detection are combined: if (in > max) out = max clip = true else if (in < min) out = min clip = true else out = delta* round(in/delta) clip = false It should be noted that, while the embodiment described by the above algorithm asserts an output signal based upon the simple clipping of the signal input to the quantizer (i.e., the output signal is asserted whenever there is any occurrence of clipping), alternative embodiments may implement more complex detection schemes. For example, they may assert an output signal upon detecting particular sets of conditions, or upon detecting types of clipping that might lead to instability in the quantizer. Any such clipping conditions may be detected by clip detector 41 1 and serve as the basis for assertion of the corresponding output signal generated by clip detector 411. The output signal ("clip") generated by clip detector 41 1 is provided as feedback to signal processor 412 which is positioned in front of noise shaper 420. The purpose of signal processor 412 is to limit the range of the audio signal that is input to noise shaper 420, but to do so in a more "intelligent" fashion than simply clipping the signal at a fixed level. In one embodiment, signal processor 412 is configured to act as a compressor-limiter. In this embodiment, signal processor 412 is configured to compress at least a portion of the audio signal in order to avoid or minimize the clipping that would otherwise occur in noise shaper 420. This may, in many instances, be easy to implement because the amplifier in which the invention is implemented may already have a compressor-limiter circuit that can be used by signal processor 412 to achieve this function.
The compressor-limiter function that can be performed by signal processor 412 is illustrated in FIGURE 5. FIGURE 5 is a diagram illustrating the response of signal processor 412 to an input audio signal. The response of signal processor 412 is shown by curve 510. Response curve 510 can be viewed as having three segments. The first segment is the response to an input that is in the range from 0 to a first threshold 505 (corresponding to an output level 501). Input audio levels in this range are linearly output at a 1 : 1 ratio. In other words, the output equals the input. If the input is in the range from the first threshold 505 to a second threshold 506, the output is compressed. Put another way, the output level is less than the input level, but is not clipped. The output level is reduced from the 1 : 1 output that is indicated in the figure by a dotted line extending upward from the first segment of response curve 510. Finally, input levels above the second threshold 506 are clipped at a maximum output level 502. It should be noted that the compressor-limiter function illustrated in FIGURE 5 is only one possible variation of the response of signal processor 412. The response can alternatively be as simple as a clipping function, or can be more complex, having additional response segments, smooth response curves, or other variations. The response function also changes in response to the feedback received from clip detector 41 1 (or clip filters or clip flag circuits, as will be described in detail below).
It should be noted that signal processor 412 can be placed before, between or after various other functional blocks of the amplifier channel, such as the interpolation and PWM linearity correction blocks mentioned above. Signal processor 412 can also be implemented in various ways. For instance, signal processor 412 can be implemented in hardware using logic gates. Alternatively, and possibly a more simple and flexible solution, is to implement signal processor 412 in software running on a programmable digital signal processor (DSP), which would typically already be present in a digital amplifier.
Referring to FIGURE 6, a functional block diagram illustrating the use of a clip detector, filter and signal processor in accordance with an alternative embodiment is shown. In this embodiment, clip prevention unit 610 comprises a clip detector 61 1, a clip filter 613 and a signal processor 612. Again, a PCM audio signal is input to signal processor 612, which processes the signal in accordance with received feedback. In this embodiment, however, the feedback is received from clip detector 61 1 via filter 613. Signal processor 612 forwards the processed signal to noise shaper 620, which quantizes the signal and forwards it to modulator 630. Modulator 630 then provides a pair of signals to drive output stage 640.
In this embodiment, clip detector 61 1 receives the signal that is input to quantizer 621 of noise shaper 620 and processes this signal in parallel with quantizer 621. Clip detector 621 detects clip conditions indicating that signal processor 61 1 should modify the input PCM audio data and generates a corresponding signal. This signal is provided to clip filter 613. After being filtered by clip filter 613, the signal is provided as feedback to signal processor 612, which can then modify the input audio signal as indicated by this feedback. The modification of the audio signal by signal processor 612 is, as described above, variable according to the received feedback.
At high input levels, quantizer 621 in noise shaper 620 may clip the audio signal only occasionally. This may be due, for example, to the noise shaping of the signal or due to short, high input spikes. Depending on its design, noise shaper 620 may be able to handle clipping of a few of these spikes without becoming unstable. Consequently, compressing the input in these cases would unnecessarily limit the output signal. Clip filter 613 can therefore be employed to filter out single occurrences or short bursts of "clip detections" and prevent them from triggering the modification of the input audio signal by signal processor 612. In one embodiment, an adequate implementation of clip filter 613 can be provided using a counter. The counter can be implemented as described in the following algorithmic description: if (clip == true) if (clipcnt == clipmax) clipcnt = clipcnt clipfiltered = true else clipcnt = clipcnt+1 clipfϊltered = false else clipcnt = 0 clipfϊltered = false - I I -
As used here, "clip" here is the output from clip detector 61 1. The internal state variable "clipcnt" counts the number of continuous active "clip" inputs, "clipcnt" is initialized to 0 before processing begins. When "clipcnt" reaches the value "clipmax," the counter stops counting and sets the "clipfiltered" output to true, "clipfiltered" remains active until the input "clip" becomes inactive. This will also reset "clipcnt" to 0.
It will be appreciated by one skilled in the art that the clip filter can be implemented in various ways. The various possible implementations can based on hardware, software, or combinations thereof. These implementations can use various different types of algorithms, such as IIR, FIR, majority vote, up/down count, and so on. It should be noted that, when clip filter 613 is implemented in fixed hardware, it may be advantageous to make the limit "clipmax" programmable, so that this value can be adjusted for individual applications of the circuit.
Referring to FIGURE 7, a functional block diagram illustrating the use of a clip detector, clip filter, clip flag and signal processor in accordance with another alternative embodiment is shown. In this embodiment, clip prevention unit 710 comprises a clip detector 71 1 , a clip filter 713, a clip flag circuit 714 and a signal processor 712. As in the other embodiments, a PCM audio signal is input to signal processor 712, which processes the signal in accordance with received feedback. In this embodiment, however, the feedback is received from clip detector 71 1 and filter 713 via clip flag circuit 714. Signal processor 712 forwards the processed signal to noise shaper 720, which quantizes the signal and forwards it to modulator 730. Modulator 730 then provides a pair of signals to drive output stage 740.
In this embodiment, clip detector 71 1 receives the signal that is input to quantizer 721 of noise shaper 720 and processes this signal in parallel with quantizer 721. Clip detector 721 detects clip conditions and generates a corresponding signal that is provided to clip filter 713. After being filtered by clip filter 713, the signal is provided to clip flag circuit 714. If the filtered signal received from filter 713 is asserted (indicating that the audio signal input to signal processor 712 should be modified), clip flag circuit 714 asserts an output signal and maintains this signal until clip flag circuit 714 is reset by signal processor 712. The output signal generated by clip flag circuit 714 is provided as feedback to signal processor 712. Signal processor 712 can then variably modify the input audio signal as indicated by this feedback. The use of a clip flag circuit may be advantageous in some embodiments, particularly those based on software. Clip flag circuit 714 may be inserted between clip filter 713 (or clip detector 71 1) and signal processor 712, or it may be incorporated into one of these components. The purpose of clip flag circuit 714 is to store the information that the input audio signal was clipped either once or long enough to trigger the clip filter. Once signal processor 712 has acted on (in response to) the assertion of flag circuit 714, it activates a "clear" signal to flag circuit 714 to clear the flag. When implemented in software on a digital signal processor, the output of clip flag circuit 714 can be polled or handled using interrupts.
Those of skill in the art will understand that information and signals may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols, and chips that may be referenced throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof. The information and signals may be communicated between components of the disclosed systems using any suitable transport media, including wires, metallic traces, vias, optical fibers, and the like. Those of skill will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Those of skill in the art may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. The various illustrative logical blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with general purpose processors, digital signal processors (DSPs) or other logic devices, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete gates or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be any conventional processor, controller, microcontroller, state machine or the like. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be embodied directly in hardware, in software or firmware modules executed by a processor, or in a combination thereof. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The benefits and advantages which may be provided by the present invention have been described above with regard to specific embodiments. These benefits and advantages, and any elements or limitations that may cause them to occur or to become more pronounced are not to be construed as critical, required, or essential features of any or all of the claims. As used herein, the terms "comprises," "comprising," or any other variations thereof, are intended to be interpreted as non-exclusively including the elements or limitations which follow those terms. Accordingly, a system, method, or other embodiment that comprises a set of elements is not limited to only those elements, and may include other elements not expressly listed or inherent to the claimed embodiment.
While the present invention has been described with reference to particular embodiments, it should be understood that the embodiments are illustrative and that the scope of the invention is not limited to these embodiments. Many variations, modifications, additions and improvements to the embodiments described above are possible. It is contemplated that these variations, modifications, additions and improvements fall within the scope of the invention as detailed within the following claims.

Claims

1. A system comprising: a detector configured to detect a clipping condition in an audio signal; a signal processor coupled to receive a feedback signal from the detector; wherein the signal processor is configured to modify the audio signal in response to the feedback signal received from the detector.
2. The system of claim 1 , wherein modification of the audio signal by the signal processor is variable.
3. The system of claim 1, further comprising a noise shaper, wherein the detector is coupled to the noise shaper and configured to detect the clipping condition in the audio signal in the noise shaper.
4. The system of claim 3, wherein the system comprises one or more components of a digital audio amplifier.
5. The system of claim 1, wherein the signal processor is configured to modify the audio signal by clipping the audio signal.
6. The system of claim 1, wherein the signal processor is configured to modify the audio signal by compressing the audio signal.
7. The system of claim 6, wherein the signal processor is configured to modify the audio signal by compressing only a portion of the audio signal that exceeds a threshold level.
8. The system of claim 1, further comprising a filter coupled between the detector and the signal processor, wherein the filter is configured to filter the feedback signal of the detector.
9. The system of claim 8, wherein the clip filter comprises a counter that is incremented for each clock cycle in which the output signal of the clip detector is asserted and that is reset on each clock cycle in which the output signal of the clip detector is not asserted.
10. The system of claim 9, wherein the clip filter is configured to assert the filtered output signal when the counter reaches a threshold level.
1 1. The system of claim 8, further comprising a flag circuit coupled between the filter and the signal processor, wherein the flag circuit is configured to receive the filtered feedback signal and, if the filtered feedback signal is in an asserted state, to maintain the filtered feedback signal in the asserted state until the flag circuit is reset by the signal processor.
12. The system of claim 1, wherein the clipping condition comprises simple clipping of the audio signal.
13. A method comprising: detecting a clipping condition in an audio signal; modifying the audio signal in response to detecting the clipping condition.
14. The method of claim 13, wherein modifying the audio signal comprises modifying the audio signal in a variable manner.
15. The method of claim 13, wherein detecting the clipping condition in the audio signal comprises detecting the clipping condition in the audio signal in a noise shaper.
16. The method of claim 15, wherein the audio signal output by the noise shaper is amplified in a digital audio amplifier.
17. The method of claim 13, wherein modifying the audio signal comprises clipping the audio signal.
18. The method of claim 13, wherein modifying the audio signal comprises compressing the audio signal.
19. The method of claim 18, wherein modifying the audio signal comprises compressing only a portion of the audio signal that exceeds a threshold level.
20. The method of claim 13, further comprising filtering a feedback signal corresponding to a detected clipping condition, wherein modifying the audio signal in response to detecting the clipping condition comprises modifying the audio signal in response to the filtered feedback signal.
21. The method of claim 20, wherein filtering the feedback signal comprises incrementing a counter in response to assertion of the feedback signal and resetting the counter in response to de- assertion of the feedback signal.
22. The method of claim 21 , wherein filtering the feedback signal further comprises asserting the filtered feedback signal when the counter reaches a threshold level.
23. The method of claim 20, further comprising, if the filtered feedback signal is asserted, maintaining assertion of the filtered feedback signal until the audio signal is modified in response to the filtered feedback signal.
24. The method of claim 13, wherein the clipping condition comprises simple clipping of the audio signal.
EP04757922A 2003-03-21 2004-03-19 Clip detection in pwm amplifier Withdrawn EP1606884A2 (en)

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
US45641403P 2003-03-21 2003-03-21
US456414P 2003-03-21
US46977003P 2003-05-12 2003-05-12
US469770P 2003-05-12
PCT/US2004/008534 WO2004086616A2 (en) 2003-03-21 2004-03-19 Clip detection in pwm amplifier

Publications (1)

Publication Number Publication Date
EP1606884A2 true EP1606884A2 (en) 2005-12-21

Family

ID=33101242

Family Applications (1)

Application Number Title Priority Date Filing Date
EP04757922A Withdrawn EP1606884A2 (en) 2003-03-21 2004-03-19 Clip detection in pwm amplifier

Country Status (5)

Country Link
EP (1) EP1606884A2 (en)
JP (1) JP4617298B2 (en)
CN (1) CN1894855B (en)
HK (1) HK1094626A1 (en)
WO (1) WO2004086616A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101375494B (en) * 2006-01-26 2011-08-17 D2音频有限公司 Systems and methods for over-current protection

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4618017B2 (en) * 2004-07-02 2011-01-26 ヤマハ株式会社 Clip suppression circuit for pulse width modulation amplifier
JP5266830B2 (en) * 2008-03-26 2013-08-21 ヤマハ株式会社 Self-excited class D amplifier
CN103955784B (en) * 2014-04-01 2016-09-14 南京航空航天大学 Manufacturing shop based on data acquisition coprocessor personal electric banner system
EP3281293B1 (en) 2015-04-09 2019-02-13 Icepower A/S Duty cycle clipper
CN107221335B (en) * 2017-05-27 2020-07-14 大连理工大学 Digitization device and method for monitoring audio signal
CN109766889B (en) * 2018-11-19 2021-04-09 浙江众合科技股份有限公司 Rail image recognition post-processing method based on curve fitting

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3047420B2 (en) * 1990-03-15 2000-05-29 ソニー株式会社 Data compression encoder
JP3121987B2 (en) * 1994-05-11 2001-01-09 シャープ株式会社 Speaker drive
JP3214981B2 (en) * 1994-06-30 2001-10-02 旭化成マイクロシステム株式会社 Delta-sigma A / D converter with AGC function
JP2000022544A (en) * 1998-07-01 2000-01-21 Mitsubishi Electric Corp Da conversion device
US6157331A (en) * 1998-10-01 2000-12-05 Tritech Microelectronics, Ltd. Sigma delta modulator with automatic saturation detection and recovery
US6122331A (en) * 1999-06-14 2000-09-19 Atmel Corporation Digital automatic gain control
WO2001026222A1 (en) * 1999-10-01 2001-04-12 Smith Carroll W Dynamic closed-loop audio amplifier system
US6778966B2 (en) * 1999-11-29 2004-08-17 Syfx Segmented mapping converter system and method
US6577737B1 (en) * 2000-02-17 2003-06-10 Visteon Global Technologies, Inc. Method of detecting a DC offset in an automotive audio system
JP4251769B2 (en) * 2000-11-15 2009-04-08 ヤマハ株式会社 Digital audio amplifier
JP3815607B2 (en) * 2001-11-16 2006-08-30 横河電機株式会社 Temperature transmitter using analog-digital converter

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See references of WO2004086616A3 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101375494B (en) * 2006-01-26 2011-08-17 D2音频有限公司 Systems and methods for over-current protection

Also Published As

Publication number Publication date
JP2006523414A (en) 2006-10-12
WO2004086616A2 (en) 2004-10-07
CN1894855A (en) 2007-01-10
JP4617298B2 (en) 2011-01-19
WO2004086616A3 (en) 2004-11-25
HK1094626A1 (en) 2007-04-04
CN1894855B (en) 2011-06-15

Similar Documents

Publication Publication Date Title
US7590251B2 (en) Clip detection in PWM amplifier
US8494180B2 (en) Systems and methods to reduce idle channel current and noise floor in a PWM amplifier
US8437478B2 (en) Systems and methods for improved over-current clipping
US7706545B2 (en) Systems and methods for protection of audio amplifier circuits
US7777563B2 (en) Spread spectrum pulse width modulation method and apparatus
US8324969B2 (en) Delta-sigma modulator approach to increased amplifier gain resolution
US20130089223A1 (en) Output Power Limiter in an Audio Amplifier
US9019012B2 (en) Amplifier circuit with offset control
US7257164B2 (en) Class D amplifier
US6791404B1 (en) Method and apparatus for efficient mixed signal processing in a digital amplifier
US8854132B2 (en) Amplifier circuit
WO2004086616A2 (en) Clip detection in pwm amplifier
JP2006295769A (en) Switching amplifier
CN102122918A (en) Systems and methods to reduce idle channel current and noise floor in a PWM amplifier
JP3842049B2 (en) Switching amplifier circuit
JP4620043B2 (en) Acoustic amplifier circuit protection system and method
EP1424780B1 (en) Delta-sigma modulator, method of switching delta-sigma modulator, and digital amplifier
GB2435559A (en) A bit-flipping sigma-delta modulator with a ternary quantiser
US8035446B1 (en) Natural sampling for a digital Class-D power amplifier
JP4115959B2 (en) Delta-sigma modulation circuit and amplifier having the same
GB2438774A (en) A bit-flipping sigma-delta modulator with noise control
Lin et al. An anti-clipping protection system for multilevel class-D amplifier
Hansen Aspects of Digital PWM Audio Power Amplifiers

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 20050928

AK Designated contracting states

Kind code of ref document: A2

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LI LU MC NL PL PT RO SE SI SK TR

AX Request for extension of the european patent

Extension state: AL LT LV MK

DAX Request for extension of the european patent (deleted)
17Q First examination report despatched

Effective date: 20061102

RIN1 Information on inventor provided before grant (corrected)

Inventor name: TAYLOR, WILSON, E.

Inventor name: HAND, LARRY, E.

Inventor name: ANDERSEN, JACK, B.

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN

18D Application deemed to be withdrawn

Effective date: 20141001