A high performance Class D audio system may be constructed with a sigma-delta modulator or other noise shaping control loop to quantize the audio signal in time such that an output suitable for connection to a Class D driver or bridge is created. A system is provided for use in an audio signal processor to reduce the order of the loop to remove sound artifacts from an audio signal that includes an input for receiving an audio input signal a control loop of order greater than one configured to process the audio input signal and to output a Pulse Width Modulated audio output signal, a circuit for performing a gradual reduction of the order of the control loop such that prior to entering a shut down state the order is reduced to a single order and a circuit to disconnect a Driver Circuit from the Pulse Width modulated signal operated by a timing device designed to switch at the moment of zero average output value.
The sigma delta modulator is a filter that transforms a hand-limited output signal into a digital 1-bit output signal, and the input signal modulates the output pulse density. This structure is intended as an example of one embodiment of the invention, and is not meant to limit the invention, which can extend to other filtering structures. It Will desirable to have this system implement an output “shut down” or disconnected state to achieve complete silence in the audio output with no noise artifacts. To achieve such a shut down of the output driver without making a “click,” the moment of shutdown occurs when the average output value is zero.
There are some conditions when it is trivial to determine the moment when the output average value is zero. For example, if, when zero audio input is applied to the system, the output begins to create a 50:50 duty cycle, we know that an average value of zero exists half-way through the high or the low cycle. Referring to
However, in general, zero audio input does not create a simple fixed 50:50 duty cycle in the output when the sigma delta modulator used has a high order.
Because the output transitions are not regularly spaced in this illustration the point where the average is zero is not easily determined. In the case where a first order modulator is used, the outputs are fixed for zero input signal and repeat regularly thus
It is desirable to have a high order modulator in the Class D circuit to reduce noise and improve total harmonic Distortion. However, these high order modulators are not easily shut down due to the non-trivial calculation needed to find the point where the output average value is zero. The invention is directed to a means to get the benefit of the high order noise shaping while the loop is operating normally, but then switch to a first order modulator when the signal is a zero in order to take advantage of the fact that the output is then a fixed repeating pattern that is more easily shut down.
Referring to
1) Audio Content is Detected as Zero—goto 2
2) Open Switch S4—goto 3
3) Wait 10 mS—goto 4
4) Open Switch S3—goto 5
5) Wait 10 mS—goto 6
6) Open Switch S1—goto 7
7) Wait for next rising edge on the PWM output—goto 8
8) Wait for one quarter of the interval between positive edges of PWM output—goto 9
9) Open Switch SZ—end.
To return from the silent state to the active state:
1) Wait for a positive edge on the PWM output—goto 2
2) Wait for one quarter of the interval between positive edges of PWM output—goto 3
3) Close the Switch SZ—goto 4
4) Close S1—goto 5
5) Wait 10 m—goto 6
6) Close S3—goto 7
7) Wait 10 mS—goto 8
8) Close S4—goto 9
9) Apply new non-zero audio data at the input—end
The invention has been described in the context of a system and method of removing artifacts from an audio signal during shutdown of the output. However, the embodiments described herein are not intended as limiting of the spirit and scope of the invention, which is defined by the appended claims.