1. Technical Field of the Invention
This invention relates generally to integrated circuits and more particularly to excessive output current detection of such integrated circuits.
2. Description of Related Art
Integrated circuits (IC) are known to be used in a multitude of electronic devices and are required to provide sufficient output power to driver components coupled to the IC. For example, an audio processing IC (e.g., audio codec, MP3 player, etc.) has at least one output to drive headphones. To protect an IC from an overload and/or short circuit on such a high powered output, the IC includes a current limiting circuit.
Therefore, a need exists for a current threshold and/or limiting circuit that overcomes the drawbacks of previous current limiting and/or current sensing circuits.
The current threshold circuit of the present invention substantially meets these needs and others. In one embodiment, a current threshold circuit includes a series impedance, a reference voltage source, and a comparison module. The series impedance couples an output of a current source to a load, wherein impedance of the series impedance is substantially less than impedance of the load. The reference voltage source is operably coupled to produce a reference voltage differential. The comparison module is operably coupled to compare the reference voltage differential with a differential voltage of the series impedance, wherein the comparison module generates an excessive current indication when the differential voltage of the series impedance compares unfavorably to the reference voltage differential.
In another embodiment, a current threshold circuit includes a current mirroring transistor, a cascode transistor, a feedback module, and a sensing module. The current mirroring transistor is operably coupled to an output transistor of a current source. The cascode transistor is operably coupled in series with the current mirroring transistor. The feedback module is operably coupled to generate a gate voltage for the cascode transistor such that a drain voltage of the current mirroring transistor substantially equals a drain voltage of the output transistor. The sensing module is operably coupled to compare a representation of a current of the current mirroring transistor with a representation of a reference current level, wherein the sensing module generates an excessive current indication of the output transistor when the representation of the current of the current mirroring transistor compares unfavorably with the representation of the reference current level.
The amplifier circuit 12 includes an amplifier 20 and a current source 18. The output of the amplifier 20 regulates the current produced by current source 18. In one embodiment, the amplifier 20 may be connected as an amplifier where the positive input is coupled to receive an input signal and the negative input is coupled to a reference voltage or other reference source. Alternatively, the amplifier circuit 12 may be used as a line driver where the positive input of the amplifier receives the input signal and the negative input of the amplifier is coupled to the output of the amplifier producing a unity gain amplifier. As one of ordinary skill in the art will appreciate, the amplifier 20 may be configured in a multitude of ways including, but not limited to, inverting single-ended amplifier and a differential amplifier. The current source 18 may include one or more output transistors that provide current to the load via the current sense threshold 14 and the integrated circuit pin.
The current threshold circuit 14 is operably coupled to sense the current provided by the current source 18 to the load 16. When the current exceeds a pre-determined threshold, the current threshold circuit 14 generates an excessive current indication. Other circuitry on the integrated circuit interprets the excessive current indication 22 to adjust the amplifier circuit 12 by reducing the current it provides and/or by disabling the amplifier circuit 12. For example, if the IC pin is shorted to ground, the current threshold circuit 14 generates an excessive current indication 22 which may be used to disable the amplifier circuit 12.
The comparison module 32 compares the differential voltage 36, which represents the voltage imposed across the series impedance 30, with the reference voltage differential 38 to produce the excessive current indication 22. In this implementation, the comparison module 32 substantially reduces issues related to common mode voltage of sensing an on-chip series impedance and/or issues related to rail-to-rail swings of the output. Further note that the impedance of the series impedance 30 is substantially less than the impedance of the load 16. For instance, the series impedance 30 is no more than 1/10th the impedance of the load 16.
As shown, each of the output transistors of the current source 18 is coupled to a corresponding resistor of the series impedance 30. The other node of each of the resistors in the series impedance 30 is coupled to the integrated circuit pin to drive the load 16. In one embodiment, one of the resistors within the series impedance 30 may be sensed to provide the differential voltage 36.
The voltage reference source 34 produces the reference voltage differential 38 by generating a reference voltage (Vref) via the band-gap reference 40. The resistive divider 42 produces a plurality of reference voltages from the reference voltage. The multiplexer 44 is enabled to select two of the plurality of reference voltages, including the original reference voltage produced by the band-gap reference 40, to produce the reference voltage differential 38. Depending on the desired current limit threshold and the voltage drop across the sense resistor within the series impedance, the reference voltage differential 38 may be selected to have a relatively small differential value or a relatively large differential value. As an alternative configuration, the multiplexer 44 may only have one output to select a voltage for the negative leg of the reference voltage differential 38 and the band-gap reference 40 provides the positive leg of the reference voltage differential 38.
The differential difference amplifier 46 amplifies the differential voltage 36 with respect to the reference voltage differential 38 to produce the excessive current indication 22.
The sensing module 52 is operably coupled to compare a representation of the current produced by the current mirroring transistor with a representation of a reference current (Iref). The sensing module generates an excessive current indication 22 when the representation of the current produced by the current mirroring transistor compares unfavorably with the representation of the reference current level. Note that the representation of the currents produced by the mirroring transistor and the reference current may correspond to voltage signals, current signals and/or digital values produced via an analog-to-digital conversion.
In operation, the amplifier 60 provides a gate voltage to the cascode transistor that ensures that the drain voltage of the mirroring transistor matches or substantially matches the drain voltage of the output transistor Tout of current source 18. By maintaining this drain voltage relationship, the mirroring transistor will accurately mirror the current of the output transistor even as the output voltage swings from rail-to-rail.
The sense resistor produces a voltage which represents the mirrored current. The voltage is compared with a reference voltage via comparator 62 to produce the excessive current indication 22 when the voltage imposed across the sense resistor R exceeds the reference voltage. Note that the sense resistor may be an on-chip resistor or an off-chip resistor. If an off-chip resistor is used, a more accurate representation of the mirror current may be produced since the tolerance of an off-chip resistor can be much greater than is obtainable via an on-chip resistor.
In operation, the amplifier 60 provides a gate voltage to the cascode transistor that ensures that the drain voltage of the mirroring transistor matches or substantially matches the drain voltage of the output transistor Tout of current source 18. By maintaining this drain voltage relationship, the mirroring transistor will accurately mirror the current of the output transistor even as the output voltage swings from rail-to-rail.
The sensing module 52 produces the excessive current indication 22 when the current through the mirroring transistor, and hence transistor T1 of the sensing module 52, produces a drain source voltage on transistor T1 that exceeds a logic one input of the inverter. In this embodiment, the gate source voltage of T1 is established by transistor T2 and the reference current source. Based on the known voltage level for a logic one input of the inverter and the properties of transistors T1 and T2, the reference current source can be set at a desired level to establish a desired gate source voltage, which in turn establishes the drain source voltage of T1.
As one of ordinary skill in the art will appreciate, the term “substantially” or “approximately”, as may be used herein, provides an industry-accepted tolerance to its corresponding term and/or relativity between items. Such an industry-accepted tolerance ranges from less than one percent to twenty percent and corresponds to, but is not limited to, component values, integrated circuit process variations, temperature variations, rise and fall times, and/or thermal noise. Such relativity between items ranges from a difference of a few percent to magnitude differences. As one of ordinary skill in the art will further appreciate, the term “operably coupled”, as may be used herein, includes direct coupling and indirect coupling via another component, element, circuit, or module where, for indirect coupling, the intervening component, element, circuit, or module does not modify the information of a signal but may adjust its current level, voltage level, and/or power level. As one of ordinary skill in the art will also appreciate, inferred coupling (i.e., where one element is coupled to another element by inference) includes direct and indirect coupling between two elements in the same manner as “operably coupled”. As one of ordinary skill in the art will further appreciate, the term “compares favorably”, as may be used herein, indicates that a comparison between two or more elements, items, signals, etc., provides a desired relationship. For example, when the desired relationship is that signal 1 has a greater magnitude than signal 2, a favorable comparison may be achieved when the magnitude of signal 1 is greater than that of signal 2 or when the magnitude of signal 2 is less than that of signal 1.
The preceding discussion has presented various embodiments of a current threshold circuit. Regardless of the embodiment, other circuits within an integrated circuit may use the excessive current indication to protect the output of the integrated circuit from damage due to short circuits and/or overload conditions. As one of average skill in the art will appreciate, other embodiments may be derived from the teaching of the present invention without deviating from the scope of the claims.