Detection of a DC offset in an automotive audio system

Abstract: The present invention relates in general to detecting a DC offset in an automotive audio system, and, more specifically, to use of a diagnostic signal from a power amplifier to determine output conditions of the power amplifier as they are affected by a DC offset. The invention provides a method of detecting a DC offset in an audio signal provided by an audio processing unit to an audio power amplifier. The audio amplifier provides a clip detect signal back to the audio processing unit. The clip detect signal is sampled to determine if the clip detect is active. A power level of the audio amplifier is then detected if the clip detect is active. Next, the power level is compared to a predetermined power threshold. Then, a DC offset is identified if the power level is less than the predetermined power threshold.

Description: Background The present invention relates in general to detecting a DC offset in an automotive audio system, and, more specifically, to use of a diagnostic signal from a power amplifier to determine output conditions of the power amplifier as they are affected by a DC offset. Automotive audio systems typically have a power amplifier intented to amplify AC signals, but which will amplify any signal which is presented at the amplifier's input. Audio speackers, (normally 4 ohms), which are attached to the amplifier can be damaged by certain amounts of DC Current. Capacitors are normally used on an input side of the amplifier to remove any DC offset in the amplifier input signal, thereby preventing DC current from flowing to the speakers. In the event these capacitors fail or are inadvertently not present, there can be substantial damage caused to the amplifier and/or the speakers. Currently, most automotive audio systems have protection for shorts but not for DC offsets. Co-pending US Patent Application serial No. 09/505,305 provides a way for sensing relatively large DC offsets. In some situations, however, it may also be desirable to provide DC offset detection when there is only a small audio signal present or the audio signal is not clipping at a high rate. Summary of the Invention The present invention provides automatic detection of a DC offset when AC signals are small or the audio signal is not clipping at a high rate. In one aspect, the method detects a DC offset in an audio signal provided by an audio processing unit to an audio power amplifier, wherein the audio amplifier provides a clip detect signal back to the audio processing unit. The method begins by sampling the clip detect signal to determine if the clip detect is active. A power level of the audio amplifier is detected if the clip detect is active. Next, the power level is compared to a predetermined power threshold. A DC offset is identified if the power level is less than the predetermined power threshold. If clipping occurs when the audio power is low then the voltage must have been shifted by a DC offset. The present invention utilizes a power detection circuit and a clip detect to monitor the power level and the clipping rate of the audio signal to determine if a DC offset is present. Brief Description of the Drawings The invention will now be described in further detail, by way of example with reference to the accompanying drawings, in which: Figure 1 is a block diagram showing the audio system of the present invention; Figure 2 is a block diagram showing portions of the audio system in an alternate embodiment; Fig 3. Is a block diagram showing the power detection circuit; Figure 4 is a flowchart showing the operation of the present invention; and Figure 5 is a flowchart showing the operation of an alternative embodiment of the present invention. Detailed Description of the Preferred Embodiments Figure 1 shows an automotive audio system including an audio processing unit or head unit 10 and power amplifiers 11 and 14 driving speakers 12, 13, 15 and 16. Power amps 11 and 14 each drive left and right stereo speakers for front and rear speakers sets, respectively. Processing unit 10 includes an audio source 17 such as a radio tuner, cassette player, or compact disc player. An audio signal from source 17 is provided to an input of a digital signal processor (DSP) 20 which outputs left and right stereo signals. A power detection circuit 29 is located either between DSP 20 and a power conditioning circuit 28 or within DSP 20. As seen in Figure 3, power detection circuit 29 comprises circuitry to measure power sent to all channels of the power amplifiers. Power detection is well known in the art. An integrator in series with a squaring and summing of the speaker signals will suffice. Capacitors 26 and 27 are located between power conditioning circuit 28 and power amplifier 14 and 11. Power conditioning circuit 28 includes digital-to-analog converter circuits for converting the DSP output to analog signals. The capacitors allow AC current signals to flow while preventing any DC current flow, thus preventing DC offset in the amplified signals. In the event these capacitors are shorted, missing or damaged, the speakers may be subjected to DC current which could potentially cause speaker damage. A microcontroller unit (MCU) 21 communicates with DSP 20 and source 17 to control operation of the audio system. MCU 21 receives input commands from inputs 22 which may include push button operator controls or an interface to a multiplex network whereby commands may be received from other locations. A display 23 is connected to MCU 21 for displaying status of the audio processing unit to allow adjustment of audio parameters such as volume, balance and fade. Power amps 11 and 14 provide outputs for respective clip detectors. The clip detector outputs indicate moments when clipping occurs in the output signal of the respective power amplifier. The clip detect outputs of power amps 11 and 14 are connected together and to a pull-up resistor 24 and an input of DSP 20 in audio processing unit 10. The clip detect outputs of power amp 11 and 14 are configured to provide a current sink (i.e. a direct connection to ground) when clipping occurs. Thus, the occurrence of clipping pulls the voltage at resistor 24 to ground, whereas the junction is at a high voltage from voltage supply +V when clipping is not occurring. Figure 2 shows a DSP limiter function in which signal level is reduced in response to clipping. A clip detect signal provided from power amp 11 in conjunction with a pull-up resistor 24 is input to DSP 20 and is used in a limiter calculation which relates the severity of clipping with a particular limiter value. Specifically, the limiter value is reduced from a maximum value of 1.0 to a possible minimum value of 0.1 at a predetermined attack rate during clipping and is restored toward 1.0 at a slower decay rate when clipping is not present. Thus, a limiter calculation 70 produces a limiter value 71 which is stored in DSP 20 and is provided as a multiplier input to a multiplier 72 to reduce the volume command. The output of multiplier 72 is provided to a multiplier 73 which multiplies the audio signal which is then provided to power amplifier 11 through power conditioning circuit 28. The present invention analyzes clipping and power output to determine if a DC offset is present. The clip detect outputs are monitored for active states during normal operation. Software routines, for example, in DSP 20 utilize a timer and a counter to sample and count a number of active clip detects. A hardware/analog circuit counter and timer can also be used to monitor the clip detect outputs. A predetermined rate is used to determine when to sample the clip detect output. The predetermined rate can be a cycle time of DSP 20 such as every 26 µs, for example. If the clip detect output is active when a sample is taken then the counter is incremented. Accumulation of a predetermined number of samples, such as 1000, is used to determine when to compare the counter to a predetermined timer threshold. A predetermined time interval is determined by a minimum desired frequency that can produce clipping. If the predetermined rate is 26 µ s then a predetermined time interval will be 1000•26•10 -6 for 26 ms. This equals about 38 Hz and is the lowest frequency that will be detected if and when it causes clipping. The predetermined timer threshold can vary depending on the characteristics of the amplifier and the clip detect. Values from about 30 percent to about 50 percent of the total number of samples has been found to uniquely identify presence of a DC offset, for example. These values are typical because of a normal signal without DC offset can clip based on the nature of audio signals and a maximum output of the audio amplifier. A normal clipping rate for a DSP limiter function circuit is about 10 to 15 percent. Any clipping rate above the normal clipping rate is considered unusual and indicates a DC offset. Power detection circuit 29 determines total power levels summed for all the input channels to the audio amplifiers. The power level is read and compared to a power threshold. The power threshold is chosen based on a lowest power level that will not cause clipping under normal operation. If the power level is below the threshold, but there is still clipping, then a DC offset is present. Typically, 1 Watt referenced at the amplifier output is used as the power threshold. 1 Watt corresponds to a minimum power level that an average audio amplifier system may see. If there are legitimate audio signals which produce more then 1 Watt, then the power threshold can be adjusted to ensure high level signals are not inadvertently seen as DC offsets. Figure 4 shows a method of detecting a DC offset in an audio amplifier. A sample count/timer is started in step 40. In step 42 a clip detect signal is sampled. Next, if the clip detect is active in step 44, a counter is incremented in step 46. A power level of the audio amplifier is read in step 48. If the power level is less then a power threshold in step 50 then the power amplifier is shut down in step 52. If the clip detect is not active in step 44 or the power level is not less then the power threshold in step 50 then the sample count/timer is read in step 54. If the sample count/timer has not exceeded a timer threshold in step 56 then steps 42-54 are repeated until the timer exceeds the timer threshold. After the sample count/timer exceeds the timer threshold, the counter is read in step 58. In step 60, the counter reading is compared to a predetermined threshold and if the counter reading exceeds the predetermined threshold then the audio amplifier is disabled in step 62, otherwise the process starts over at step 40. Figure 5 shows an alternative method of detecting a DC offset in an audio amplifier. A sample count/timer is started in step 74. In step 76 a clip detect signal is sampled for active clips. Next, if the clip detect is active in step 78, a counter is incremented in step 80. A power level of the audio amplifier is read in step 82. If the power level is less then a power threshold in step 84 then a power counter is incremented in step 86. If the clip detect is not active in step 78 or after the power counter is incremented in step 86 the sample count/timer is read in step 88. If the sample count/timer has not exceeded a timer threshold in step 90 then steps 76-88 are repeated until the timer exceeds the timer threshold. After the sample count/timer exceeds the timer threshold, the counter is read in step 92. In step 94, the counter reading is compared to a predetermined threshold and if the clip counter reading exceeds the predetermined threshold then the audio amplifier is disabled in step 96, otherwise the power counter is read in step 98 and if the power counter is greater then a power counter threshold in step 100 the audio amplifier is shut down in step 96. The power counter threshold is derived from a smallest signal which would cause clipping in a normal operating audio amplifier. The counter threshold allows a signal which is momentarily below the power threshold to flow to the speakers. After the power counter reaches a value greater then the power counter threshold a DC offset is assumed to be present.

Claims: A method of detecting a DC offset in an audio signal provided by an audio processing unit to an audio power amplifier, wherein said audio amplifier provides a clip detect signal back to said audio processing unit, wherein said method comprises the steps of: sampling said clip detect signal to determine if said clip detect is active; detecting a power level of said audio amplifier if said clip detect is active; comparing said power level to a predetermined power threshold; and identifying the presence of a DC offset if said power level is less than said predetermined power threshold. The method according to Claim 1, wherein said audio processing unit includes a microprocessor and, wherein if said power level is less than said predetermined power threshold then a fault signal is sent to said microprocessor. The method according to Claim 1 or Claim 2, wherein said predetermined power threshold is about 1 Watt. The method according to any preceding claim, wherein said predetermined power threshold is at least a maximum power level of a signal without a DC offset that provides no clipping. The method according to Claim 1, wherein if said power level is less than said predetermined power threshold then said audio power amplifier is shut down. A system for detecting a DC offset in an audio amplifier with a clip detect signal comprising: a timer/counter to sample said clip detect within a predetermined time interval until a sample threshold is reached; a power level detection circuit for monitoring a power level of said audio amplifier when said clip detect is active; wherein if said clip detect is active said power level is compared with a predetermined power threshold; and wherein if said power level is less than said predetermined power threshold then the presence of said DC offset is identified. The system according to Claim 6, wherein said power threshold is about 1 Watt. The system according to Claim 6 or Claim 7, wherein said power threshold is at least a maximum power level of a signal without a DC offset that provides no clipping. The system according to any of Claim 6 to 8, wherein if said power level is less than said predetermined power threshold then said audio amplifier is shut down. A method of detecting a DC offset in an audio signal provided by an audio processing unit to an audio power amplifier, wherein said audio amplifier provides a clip detect signal back to said audio processing unit, wherein said method comprises the steps of: sampling said clip detect signal to determine if said clip detect is active and incrementing a clip counter if said clip detect is active; detecting a power level of said audio amplifier if said clip detect is active; comparing said power level to a power threshold; incrementing a power counter if said power level is less then said power threshold; identifying the presence of a DC offset if said clip counter is greater then a predetermined threshold; and identifying the presence of a DC offset if said power counter is greater then a power counter threshold.

Inventors: HAMEL GREGORY ROGER, KROCHMAL ANDREW CYRIL, WHITECAR JOHN ELLIOT, HAMEL, GREGORY ROGER, KROCHMAL, ANDREW CYRIL, WHITECAR, JOHN ELLIOT
Applicants: VISTEON GLOBAL TECH INC, VISTEON GLOBAL TECHNOLOGIES, INC.
Application year: 2001
Main classification: H03F1
IPC codes: H03F1