The invention is directed to a system and method that solves the audio artifact problem discussed above. The system implements a method of tracking the average value of the signal presented to the Class driver stage (the “bridge” or “bridge chip”) of the audio system and indicates to the shut down means the correct time at which to switch to the disconnected stage such that no click or pop is created. An example of a typical system to which the invention applies is shown in
The invention provides a system for use in an audio signal processor to remove sound artifacts from an audio signal during shutdown of the output, which includes an input for receiving an audio input signal, a noise shaping modulator to reduce the input bit width having an order of two or more, a circuit by which the reduced bit representation is converted to a single bit time domain output as may be done by a PWM element, multiple channels where two or more share a common output enable signal, a circuit by which the time of zero average value of a given channel output may be found, a circuit by which the output of the channel may be replaced with a fixed signal representative of a silent audio signal, a circuit by which the time of the occurrence of the zero average output value may be compared to the predictable time of the zero average value output of the fixed signal, a circuit by which channels are in succession compared to prior channels and switched to share the fixed output signal, and a circuit by which upon finding the last channel is at the zero average value in synchrony with the prior channel or channels the output of the entire group of channels may be simultaneously disconnected.
The system according to one embodiment of the invention is directed to a system for use in an audio signal processor to remove sound artifacts from an audio signal during shutdown of the output that has an input for receiving an audio input signal, a noise shaping modulator to reduce the input bit width having an order of two or more, a circuit by which the reduced bit representation is converted to a single bit time domain output as may be done by a PWM element, a circuit by which a filtered or average value of the output single bit time domain stream may be performed, a circuit, within or separate from the above filter, whereby the significance of the PWM samples as assessed by the filter varies with time such as may be described by the filter having a variable impulse response, a circuit by which the average value may be found to be zero or sufficiently close to zero as determined by the resolution of the filter output, a circuit by which the filter average value being zero or close to zero is used to disconnect (or equivalently change impedance or power) of the device or devices rendering the PWM signal into the analog domain as may be implemented by a Class D bridge chip and disconnection circuitry.
The example shown is a third order sigma delta loop driving a pulse wave modulator (PWM) element. The intention is to convert an input signal expressed over many bits (typically 24) into a single bit stream of data output from the PWM element to be connected to a Class D power driver. The invention is directed to determining the best moment in which to disconnect the power driver from the output stream such that no click or pop is heard in the loudspeakers. The reason that a click or pop is heard is due to the average value of the signal not being zero at the time of disconnection. The invention is directed to assessing the average value of the signal for the purpose of indicating the ideal time for a shutdown of the output signal. I practice, this is non-trivial because the output signal is bounded and the average of the output signal oscillates. The actual phase of the oscillation of the average value depends upon the time at which the averaging process was started.
Therefore, a clear indication of the ideal time for shutdown cannot depend upon a simply derived average value.
This is empirically found to be the ideal time—it corresponds to the average shown in A2 of
The invention is directed to a method of determining the time when the average value of the high order modulated signal (and hence not exactly repeating 50:50) is zero independently of the choice of starting time. If the output pulses of the PWM from the high order modulator are applied to an up/down counter such that the counter counts up when the signal is high and counts down when the signal is low, a digital representation of the average value can be created.
a is the up/down (U/D) counter, where, if the wire labeled U/D is high, the next clock edge will cause the average number to increase. In contrast, if it is low, it will decrease. The average value on the output bus of the U/D counter is seen to represent the average value of the PWM output as sampled by the clock. This demonstrates that an up down counter is sufficient to asses the average value of the output, but this up/down counter method would suffer from the problem of its dependency on the start point to indicate the correct result (i.e. it suffers from the problem shown in
a and 6b illustrate an up/down counter that is modified to accept an amount by which it is incremented or decremented, where the up/down counter changes by ±1, this configuration changes by ± a variable amount.
As illustrated in another embodiment,
On aspect of the invention the ramp indicated in the drawing. At the start of the integration process the factor value is zero. Over time it slowly increases to a significant value, 100 for example. Thus, as the stream of PWM data emerge from the loop they are averaged in this block, but the weight attached to the averaging process is not fixed—for the early samples the weight is low, the weight increased with time to a final value significantly more than its initial value. This procedure then delivers a zero crossing in the average value that does indeed correspond to the time when the average is zero and the output may be disconnected.
The invention is directed to a system and method that solves the audio artifact problem discussed above in a multi-channel system. Each of the channels in the multi-channel audio system is derived from a high order modulator. A high order modulator (with order greater than one) has an output that does not settle down to a precise 50:50 duty cycle for no input data—the output always “jitter”s due to nature of the high order noise shaping loop. An example of a typical channel in the system to which this invention applies is shown in
In flow chart format, one implementation of the invention is as follows. When it is desired to shut down a high order modulator's PWM output as used in high performance Class D circuits.:
The above description allows the point of average zero out to be found. In the above embodiments, it has been suggested that at this point the output may be disconnected, however this would not be possible if more than one channel is connected to single shutdown pin on the driver chip. Consequently, the embodiment of Figure the key aspect of this disclosure is to now not switch off (disconnect) the driver but instead to, at this point on this channel, switch to a 50:50 duty cycle. There will be no “click” at this point since the average was zero and the signal we are now applying (the 50:50 signal) also has a zero average value. So the first channel has now switched to a 50:50 duty cycle with no click, but the output is still enabled to the loudspeaker—we have not attempted to disconnect it. However, because the channel has switched to a 50:50 duty cycle it is no longer necessary to apply a complex procedure to find the point of zero average output value—such a point occurs two times in a cycle—at the point halfway along the low period and again at the point halfway along the high period. Attention now turns to the second channel—a means is applied to find the point zero average output value, but we ignore all results until that point of zero average output value falls at a time when we know the first channel has a zero average output value. At this point, the system switches to the second channel to the 50:50 duty cycle as well. Attention now turns to the third and any successive channel that share the same shutdown signal. When at the last such channel, the shutdown process is activated. This must occur at the point where all channels are now at the ‘click-less” point and we have achieved our goal. The following flow chart in one implementation of the invention is as follos. A 50:50 duty cycle are the rate of the PWM output is used.