Background of the Invention
1. Field of the Invention
The present invention relates to the design of integrated circuits; and, in particular relates to the design of integrated circuits for audio applications, such as audio amplifiers.
2. Discussion of the Related Art
In an audio system, the speakers are driven by audio amplifiers. Without special measures to provide a gradual turning on or turning off of such audio amplifiers, audible sounds, commonly known as "clicks" and "pops," can result. These sounds are not only acoustically unpleasant, the current associated with clicks and pops can damage the speakers. Thus, an audio system using an integrated circuit audio amplifier typically provides components external to the integrated circuit to avoid clicks and pops. Such external components cannot be easily integrated into the audio amplifier, since they typically include large capacitances which cannot be practically provided on the integrated circuit. These external components also occupy valuable board space and increase system cost. Thus, there is a need to minimize the external components necessary for avoiding clicks and pops.
An integrated circuit audio amplifier, however, provides an input pin for connection of a bypass capacitor to a DC reference voltage ("half-supply") between a power supply V.sub.dd and a power supply V.sub.SS. Such a bypass capacitor protects the integrated circuit from undesirable effects of noise in the power supplies.
Summary of the Invention
In accordance with the present invention, a structure and a method provide in an integrated circuit, which is coupled to an external capacitor, a bias control circuit including:
(i) a switch;
(ii) a voltage divider coupled by the switch between a supply voltage source and a ground voltage to selectably charge the external capacitor to a predetermined voltage between the voltage of the supply voltage source and the ground voltage, and discharge the external capacitor to the ground voltage; and
(iii) a control circuit, coupled to the external capacitor, for providing a voltage or current which changes correspondingly with the rate at which the external capacitor is discharged.
In one embodiment of the present invention, the control circuit includes a first bipolar transistor having a base terminal coupled to the external capacitor, and a collector terminal coupled to the ground voltage. In addition, the base terminal of a second bipolar transistor is coupled to an emitter of the first bipolar transistor. The second bipolar transistor has a collector terminal coupled to the ground voltage and an emitter terminal for providing an output voltage. The output voltage is used to drive a second switch, so that the switch is turned on at a rate commensurate with the rate of change of the output voltage, when the external capacitor is discharged.
In another embodiment of the present invention, the control circuit includes an MOS inverter coupled between the supply voltage and the external capacitor. The MOS inverter receives an input signal which indicates a discharge phase of the external capacitor. In response to this input signal, the MOS inverter provides an output voltage which changes at a rate corresponding to the rate of discharge of the external capacitor. In that embodiment, the output voltage of the MOS inverter drives a second switch, to regulate a current which changes in response to the rate of change of the output voltage of the MOS inverter. In that embodiment, the MOS inverter includes long channel MOS transistors.
The present invention minimizes the number of external components necessary to avoid clicks and pops in an audio system, by taking advantage of the bypass capacitor provided to protect the integrated circuit from power supply noises.
The present invention is better understood upon consideration of the detailed description below and the accompanying drawings.
Brief Description of the Drawings
FIG. 1 shows an audio output circuit 100 in which an embodiment of the present invention is deployed.
FIG. 2 shows a control circuit 200 of bias circuit 113 in audio output circuit 100; control circuit 200 includes an embodiment of the present invention for gradually turning on and off a conventional bias generation circuit 201.
FIG. 3 shows a control circuit 300 of bias circuit 113 in audio output circuit 100; circuit 300 includes an embodiment of the present invention allowing slew rate control when switching off a conventional bias generation circuit 301.
Detailed Description of Preferred Embodiments
One embodiment of the present invention is implemented in an audio output circuit 100, in which an 8-ohm speaker is driven by a pair of power amplifiers in a bridge configuration, as shown in FIG. 1. Although audio output circuit 100 is shown here as implemented in a bridge configuration, the bridge configuration is provided for illustration only. The present invention is applicable to other audio output circuits also, as will be evident from the detailed description below. As shown, audio output circuit 100 is a monophonic output circuit of an audio system.
As shown in FIG. 1, signals 104 represents a signal in an audio channel to be amplified by gain amplifier 101. In circuit 100, amplifiers 108 and 109 are provided in a bridge configuration to drive 8-ohm speaker 102. Audio output circuit 100 also consists of a shut-down logic circuit 112, a bias circuit 113, which provides the bias voltages used in amplifiers 108 and 109 and disables output of current to speaker 102. In FIG. 1, the output of current to speaker 102 is disabled by bias circuit 113 charging a capacitor 114. Shut-down logic circuit 112, which controls the operation of bias circuit 113, is responsive to a temperature sense circuit 110 and a headphone sensing circuit 111.
Bias circuit 113 generates a number of bias voltages for use in amplifiers 108 and 109. FIG. 2 shows a circuit 200, which controls the turning-on and the turning-off operations of bias circuit 113. In FIG. 2, a conventional circuit 201 for generating a bias voltage on lead 214 is switched off by transistor NMOS 202. NMOS transistor 202 is provided by a transistor having a drawn width-to-length (W/L) ratio of 300/1.sup.1 in one embodiment, although a smaller size transistor can also be used in a design choice to achieve a smaller layout area. Circuit 200 is powered up and powered down by the logic low (low voltage) and logic high (high voltage) states, respectively, of a control signal ("bias-off") on lead 203.
During power up, the bias-off control signal on lead 203 goes to logic low, thereby turning on PMOS transistor 204 and charging external bypass capacitor 205 through resistor 206. In this embodiment, bypass capacitor can have any convenient value suitable for minimizing ground noises, such as 0.1 uF. Resistors 206 and 207, each having a resistive value of 50 Kohms.sup.2, form a voltage divider to gradually bring node 208 to one-half the voltage of power supply V.sub.dd. AS transistor 204 turns on, PNP transistors 209 and 210 are also turned on, drawing current through resistors 213 and 212. In this embodiment, PNP transistors 209 and 210 are parasitic bipolar transistors each having a drawn area of one square micron, and resistors 212 and 213 are each 50 Kohms. Thus, the voltage at node 211 exceeds the voltage at node 208 by two base-to-emitter voltage (V.sub.be) drops and rises at the same RC time constant as node 208. The increase in voltage at node 202 slowly turns on transistor 202 to enable the bias generation circuit 201 to become operational. In this manner, since bias generation circuit 201 is not turned on abruptly, a click or pop noise due to the sudden turning on of bias voltages at amplifiers 108 and 109 is avoided. One of ordinary skill in the art would appreciate that the voltage at node 208 can also be used to turn on transistor 202. However, the extra two V.sub.be voltage drops allow circuit 200 to operate under a power supply voltage V.sub.dd as low as 2.5 volts. Without the two V.sub.be drops, the final voltage of 1.25 volts at node 208 may still be insufficient to fully turn on transistor 202.
Conversely, during the turning-off operation of bias circuit 113, when bias-off control signal goes to logic high, thereby switching off transistor 204, bypass capacitor, initially at half the voltage of power supply voltage V.sub.dd, discharges to ground voltage (i.e. V.sub.SS) gradually through resistor 207. As transistor 204 turns off, PNP transistors 209 and 210 are also turned off, such that node 211 discharges through resistors 213, 206 and 207 to the ground voltage. Consequently, transistor 202 is gradually switched off to turn off the bias generation circuit 201. Again, since transistor 202 is gradually turned off, click and pop noises induced by abrupt changes in the bias voltages of amplifiers 108 and 109 are avoided.
FIG. 3 shows a control circuit 300 of bias circuit 113 for controlling the turning-off operation of a conventional bias generation circuit 301, which provides a current in lead 302 for generating a bias voltage. Circuit 300 also takes advantage of the external bypass capacitor 205 to effectuate a gradual turning off of bias generation circuit 301. To simplify cross reference between FIGS. 2 and 3, the common components in FIGS. 2 and 3 are provided the same reference numerals. Circuit 300 receives an input signal ("shutdown") on node 308. The turning-off operation of bias generation circuit 301 is signalled by the shutdown signal going to logic high state.
Initially, during normal operation, transistor 204 is on, so that the voltage divider formed by resistors 206 and 207 maintains the voltage on external bypass capacitor 205 at substantially one half of supply voltage V.sub.dd. When both the shutdown signal and the bias-off signal go to logic high, transistors 204 and 307 are turned off rapidly. Consequently, the voltage on bypass capacitor 205 discharges at an RC time constant determined by the capacitance of bypass capacitor 205 and the resistance of resistor 207. At the same time, transistor 306 is turned on, so that the voltage at node 311 rapidly drops from substantially V.sub.dd to the voltage on bypass capacitor 205 (i.e. substantially one half of supply voltage V.sub.dd). As bypass capacitor 205 discharges towards ground voltage, the voltage on node 311 decreases at the same rate as the discharge of bypass capacitor 205. Thus, the current in PMOS transistor 303 increases gradually. Since the sum of the currents in transistors 310 and 303 is constrained by current source 309, the gradual increase in current in transistor 303 results in a corresponding decrease in current, at the same rate, in transistor 310. Consequently, the bias generation circuit 301 is shutdown gradually without causing clicks or pops in the output amplifier. The rate of current increase in transistor 303 can be adjusted by changing the resistance and capacitance values of resistor 207 and bypass capacitor 205. Thus, bias control circuit 300 also acts a slew rate control circuit for the audio output amplifier. In this embodiment, transistors 306 and 307 are implemented by long channel MOS transistors to take advantage to the relatively high resistance in such MOS transistors.
The above detailed description is provided to illustrate the specific embodiments of the present invention and is not intended to be limiting. Many modifications and variations within the scope of the present invention are possible. For example, the values and sizes of transistors and resistors are provided hereinabove as exemplary values only. Other suitable values are readily provided by one of ordinary skill in accordance with the teachings of above detailed description. The present invention is defined by the following claims.