Reverse current protection circuit

10979037 · 2021-04-13

Assignee

Inventors

Cpc classification

International classification

Abstract

In described examples, a power interface subsystem includes power transistors, each having: a conduction path coupled between a battery terminal and an accessory terminal; and a control terminal. A differential amplifier has: a first input coupled to the battery terminal; a second input coupled to the accessory terminal; and an output node. An offset voltage source is coupled to cause an offset of a selected polarity at one of the inputs to the differential amplifier. The offset has a first polarity in a first operating mode and a second polarity in a second operating mode. Gate control circuitry is coupled to apply a control level at the control terminal(s) of selected one(s) of the power transistors responsive to a voltage at the output node, and to apply an off-state control level to the control terminal(s) of unselected one(s) of the power transistors.

Claims

1. A system comprising: first and second transistors coupled in series; and a reverse current protection circuit including: a differential amplifier including: first, second, and third load devices; a first input leg coupled between a terminal of the first transistor and the first load device and including third and fourth transistors coupled in series; a second input leg coupled between a terminal of the second transistor and the second load device and including fifth and sixth transistors coupled in series, wherein gates of the third and fifth transistors are coupled to a terminal of the fourth transistor; and a bias leg coupled between the terminal of the first transistor and the third load device and including seventh and eighth transistors coupled in series, wherein gates of the seventh and eighth transistors and gates of the fourth and sixth transistors are coupled to a terminal of the eighth transistor; an offset voltage source coupled to the first and second input legs and configured to cause a voltage offset of a selected polarity between the first and second input legs; and gate control circuitry coupled between a terminal of the second load device and a gate of the first transistor.

2. The system of claim 1, wherein the reverse current protection circuit further includes: a clamp circuit coupled to the first and second input legs and to the bias leg and configured to clamp a voltage differential between a terminal of the third transistor and the gates of the fourth and sixth transistors and configured to clamp a voltage differential between a terminal of the eighth transistor and the gates of the fourth and sixth transistors.

3. The system of claim 2, wherein the clamp circuit includes: first and second diode-connected transistors coupled in series between the terminal of the third transistor and the gates of the fourth and sixth transistors; and third and fourth diode-connected transistors coupled in series between the terminal of the eighth transistor and the gates of the fourth and sixth transistors.

4. The system of claim 3, wherein the first transistor is a high-voltage metal-oxide-semiconductor (MOS) transistor, and the fourth and sixth transistors are low-voltage MOS transistors.

5. The system of claim 1, wherein the reverse current protection circuit further includes: a first resistor connected in series between the terminal of the first transistor and the first input leg; a second resistor connected in series between the terminal of the second transistor and the second input leg; and a third resistor connected in series between the terminal of the first transistor and the bias leg; wherein the offset voltage source is coupled to terminals of the first second resistors.

6. The system of claim 1, further comprising: control circuitry coupled to the offset voltage source and configured to cause the voltage offset to have a first polarity in a first operating mode and a second polarity in a second operating mode.

7. The system of claim 6, further comprising: an output diode coupled to the terminal of the second load device and to the gate control circuitry; and an output transistor coupled in series with the output diode and having a gate coupled to the control circuitry; wherein the control circuitry is configured to turn on the output transistor durinq the first operating mode and turn off the output transistor during the second operating mode.

8. The system of claim 7, further comprising a ninth transistor coupled in parallel with the first transistor, the ninth transistor having a gate coupled to the gate control circuitry and having a different on-state resistance than the first transistor; wherein the gate control circuitry is configured to: apply a first gate voltage, to a selected one of the first and ninth transistors, which is responsive to a voltage at the terminal of the second load device; and apply a second gate voltage to an unselected one of the first and ninth transistors.

9. The system of claim 1, further comprising a ninth transistor coupled in parallel with the first transistor, the ninth transistor having a gate coupled to the gate control circuitry and having a different on-state resistance than the first transistor; wherein the gate control circuitry is configured to: apply a first gate voltage, to a selected one of the first and ninth transistors, which is responsive to a voltage at the terminal of the second load device; and apply a second gate voltage to an unselected one of the first and ninth transistors.

10. The system of claim 1, wherein the terminals of the first and second transistors are first terminals, the system further comprising: a current sense and limit circuit having a first input coupled to the first terminal of the first transistor, a second input coupled to second terminals of the first and second transistors, and an output coupled to a gate of the second transistor, wherein the current and sense limit circuit is configured to control a state of the second transistor responsive to a voltage at the first terminal of the first transistor and a voltage at the second terminals of the first and second transistors.

11. A system comprising: first and second transistors coupled in series; and a reverse current protection circuit including: a differential amplifier having a first input coupled to a terminal of the first transistor, a second input coupled to a terminal of the second transistor, and an output; an offset voltage source coupled to the first and second inputs and configured to cause a voltage offset of a selected polarity at the first and second inputs, the voltage offset having a first polarity in a first operating mode and a second polarity in a second operating mode; control circuitry coupled between the output of the differential amplifier and a control terminal of the first transistor; an output diode coupled to the output of the differential amplifier and to the control circuitry; and an output transistor coupled in series with the output diode.

12. The system of claim 11, wherein the control circuitry is first control circuitry, the system further comprising: second control circuitry coupled to the offset voltage source and to a control terminal of the output transistor and configured to indicate an active one of the first and second operating modes.

13. The system of claim 12, wherein the first, second, and output transistors are metal-oxide-semiconductor (MOS) transistor.

14. The system of claim 13, wherein the output diode includes a diode-connected MOS transistor.

15. The system of claim 11, further comprising a third transistor coupled in parallel with the first transistor, the third transistor having a control terminal coupled to the control circuitry and having a different on-state resistance than the first transistor; wherein the control circuitry is configured to: apply a first control level, to the control terminal of a selected one of the first and third transistors, which is responsive to a voltage at the output of the differential amplifier; and apply a second control level to the control terminal of an unselected one of the first and third transistors.

16. A system comprising: first and second transistors coupled in series; a third transistor coupled in parallel with the first transistor, wherein the first and third transistors have different on-state resistances; and a reverse current protection circuit including: a differential amplifier having a first input coupled to a terminal of the first transistor, a second input coupled to a terminal of the second transistor, and an output; an offset voltage source coupled to the first and second inputs and configured to cause a voltage offset of a selected polarity at the first and second inputs, the voltage offset having a first polarity in a first operating mode and a second polarity in a second operating mode; and control circuitry coupled between the output of the differential amplifier and control terminals of the first and third transistors.

17. The system of claim 16, wherein the first and third transistors are metal-oxide-semiconductor (MOS) transistors.

18. The system of claim 17, wherein the first and third transistors have different channel width to channel length ratios.

19. The system of claim 1, wherein: the seventh transistor has a same width to length ratio as the third transistor; the eighth transistor has a same width to length ratio as the fourth transistor; and the third load device has a same width to length as the first load device.

20. The system of claim 1, wherein none of the third through sixth transistors are diode-connected.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is an electrical diagram, in schematic form, of a conventional power interface subsystem.

(2) FIG. 2 is an electrical diagram, in schematic form, of a conventional reverse current protection circuit in the power interface subsystem of FIG. 1.

(3) FIG. 3 is an electrical diagram, in block form, of battery-powered system with accessories in which embodiments may be implemented.

(4) FIG. 4 is an electrical diagram, in schematic form, of a power interface subsystem according to an embodiment.

(5) FIG. 5 is an electrical diagram, in schematic form, of a reverse current protection circuit in the power interface subsystem of FIG. 3, according to an embodiment.

(6) FIG. 6A is an electrical diagram, in schematic form, of the arrangement of power transistors in the power interface subsystem according to an embodiment.

(7) FIG. 6B is an electrical diagram, in schematic form, of gate control circuitry for the power transistors of FIG. 5a according to that embodiment.

DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS

(8) Described examples include a reverse current protection circuit, operable at low battery voltages, in a current path between a battery power port and an accessory power port in a battery-powered system. In at least one described example, the circuit achieves: improved sensing accuracy over a wide range of reverse current; and fast response in a comparator mode without sacrificing stability in a reverse current blocking mode. Further, in at least one described example, the circuit can be realized with a minimum number of high voltage-rated transistors.

(9) In described examples, a reverse current protection circuit for a battery-powered system includes a differential amplifier that senses a voltage across a power transistor coupled between an accessory power port and a battery power port. An input stage of the differential amplifier is constructed as a cascode arrangement of low voltage transistors, with their gates biased from a bias line that replicates one of the input legs of the amplifier.

(10) In further described examples, a reverse current protection circuit for a battery-powered system includes power transistors of varying drive strength, coupled in parallel between an accessory power port and a battery power port. One or more of the transistors is selected for operation, according to the load current demand of the accessory. A differential amplifier controls the gate voltages of the selected power transistors responsive to current between the ports as reflected in a voltage across the selected power transistors.

(11) In more described examples, a reverse current protection circuit for a battery-powered system includes a differential amplifier that senses a voltage across a power transistor coupled between an accessory power port and a battery power port, and that is operable to control the power transistor in both a reverse-current blocking mode and in a comparator mode that allows reverse current. A diode load at the output of the differential amplifier is enabled in the reverse-current blocking mode for stability, and enabled in the comparator mode to improve the response of the circuit.

(12) In at least one example, a power interface subsystem includes a reverse current protection circuit to control current flow between: a battery in an electronic system; and an accessory attached to the system. The circuit includes a differential amplifier based on a low voltage cascode amplifier that compares a voltage at a battery terminal with a voltage at an accessory power terminal, plus an offset of a polarity corresponding to whether the subsystem is operating in a diode mode or a comparator mode. The low voltage cascode amplifier includes a replica bias leg to bias the cascode transistors, in which voltages are clamped for protection. The circuit has a selectable output gain according to the operating mode. In some embodiments, multiple power transistors having different on-state resistances are coupled in parallel between the battery terminal and the accessory terminal, to achieve improved current sensing resolution according to the load current level.

(13) Example embodiments described in this specification are suitable for implementation into a power interface subsystem for a battery-powered device, such as a smartphone or other portable computing or communication device, and such implementation is particularly advantageous in that context. Likewise, example embodiments are beneficially applicable to other applications, such as those in which a variety of external devices may be connected to an electronic system.

(14) FIG. 3 illustrates an example of a system in which these embodiments may be incorporated, specifically in the context of smartphone 100. Also, these embodiments may be implemented in other types of battery-powered electronic systems. In this example, smartphone 100 includes conventional functionality for modern cellular telephone handsets, including the capability of carrying out wireless voice and data communication, video and audio recording and playback, Internet access and digital photography. Smartphone 100 in this arrangement includes interface connector 110, which may be of an industry standard (e.g., USB) or a proprietary or brand-specific (e.g., LIGHTNING interfaces for devices from Apple Inc.) type that can interface with an accessory device external to smartphone 100. Various types of accessories can be connected to the system at interfaces of these types, including external storage devices such as solid-state or magnetic disk unit DS, input and output devices including audio and video devices such as digital camera DC and video projector VP, computer systems such as notebook computer PC, and also charging devices such as AC/DC power converter CH for charging the system battery.

(15) As indicated by FIG. 3, each of these accessories can connect to interface connector 110 of smartphone 100 through a cable and connector 120. This cable and connector 120 may be dedicated to a particular accessory, but usually is a single cable owned by the user of smartphone 100 that can plug into a number of accessories as desired. Some accessories, such as thumbdrives, may connect directly to interface connector 110 without use of a cable. In any case, interface connector 110 of smartphone 100 and connectors 120 includes one or more terminals through which data can be communicated between the connected devices and, as relevant to these embodiments, at least one power terminal through which smartphone 100 may power the accessory or through which the accessory may charge the system battery of smartphone 100. In the case of AC/DC power converter CH, only the power terminals need be active or connected at its connector 120.

(16) FIG. 4 illustrates the architecture of power interface subsystem 25 such as may be implemented in smartphone 100 at its interface connector 110 or in another manner in another type of battery-powered device, and constructed according to an embodiment. As shown in FIG. 4, power interface subsystem 25 is connected at power terminal ACC_PWR and ground terminal GND, which will couple to corresponding power and ground terminals of the accessory, either directly or via connector 120. In the case of functional accessories (such as external storage devices and other computing systems), data terminals (not shown) will also be provided at interface connector 110 to provide the capability of data communication.

(17) In this architecture, smartphone 100 is powered by internal battery 32, which may be realized as a conventional rechargeable battery, such as a lithium-ion battery. Power interface subsystem 25 manages the powering of an accessory connected at power terminal ACC_PWR from battery 32, and also manages the charging of battery 32 from certain power accessories coupled at terminal ACC_PWR. As discussed above, voltage V.sub.BAT presented by battery 32 (e.g., of a conventional lithium-ion type) can range from below 2.5 volts when nearly discharged to about 6 volts when fully charged. In contrast, the voltage V.sub.ACC_PWR presented by an accessory coupled to smartphone 100 at terminal ACC_PWR can be as high as 20 volts. According to these embodiments, power interface subsystem 25 protects smartphone 100 against excess current flow that can occur from these widely varying voltages.

(18) More specifically, power interface subsystem 25 manages the powering of the accessory or the charging of battery 32, depending on the desired mode of operation, in either case by sensing of the voltage across terminals BAT and ACC_PWR. As shown in FIG. 4, one or more high-voltage power MOSFET transistors 34 are connected in series with high-voltage n-channel MOS transistor 38HV between terminals BAT and ACC_PWR. As described in further detail below, the gates of these power transistors 34 are controlled by corresponding gate voltages GATE_SNS_CTRL_S/M/L issued by reverse current protection circuit 40, while the gate of transistor 38HV is controlled by signal GATE_PASS_CTRL issued by current sense and limit circuit 42. As in the conventional architecture described above relative to FIG. 1, pull-up current sources apply bias currents I.sub.PU to the gates of each of transistors 34, 38HV in combination with corresponding signals GATE_SNS_CTRL_S/M/L and GATE_PASS_CTRL.

(19) Similarly as the conventional subsystem of FIG. 1, n-channel high voltage MOS transistor 36HV has its source/drain path connected between terminal BAT and the negative input of current sense and limiter circuit 42, and its gate voltage corresponding to one or more of the gate voltages GATE_SNS_CTRL_S/M/L. In this example of FIG. 4, the gate of transistor 36HV receives the gate voltage GATE_SNS_CTRL_S, which is active if any of power transistors 34 is turned on. Accordingly, transistor 36HV will be on while one or more of power transistors 34 is on, during which time current sense and limiter circuit 42 compares voltage V.sub.BAT with the voltage at node PMID between power transistors 34 and the drain of transistor 38HV. In its general operation, current sense and limiter circuit 42 senses the polarity and magnitude of the voltage across power transistors 34, which indicates the polarity and magnitude of the current flowing between terminals BAT and ACC_PWR. The results of this comparison are communicated by current sense and limiter circuit 42 to an analog-to-digital converter (ADC) or another system control function. Also, if current sense and limiter circuit 42 detect a significantly higher voltage at terminal BAT relative to node PMID (such as can occur in the event of a short circuit at terminal ACC_PWR), then it de-asserts signal GATE_PASS_CTRL, turning off transistor 38HV to protect battery 32 against the short circuit condition.

(20) An increasingly important factor in battery-powered systems such as smartphone 100 is the operating life that can be provided by a fully-charged battery. In addition to reduction of power consumption, the ability of circuitry in these systems to operate at low voltages as the battery discharges is an important factor in extending battery life. For example, as mentioned above, the output voltage of lithium-ion batteries can drop from about 6 volts, when fully charged, to below 2.5 volts when nearing discharge. Accordingly, power interface system 25 is preferably capable of operation at low levels of battery voltage V.sub.BAT (e.g., as low as 2.2 volts).

(21) Based upon observations, conventional reverse current protection circuitry, such as circuit 10 discussed above relative to FIG. 1, requires significant power supply voltage “headroom” that limits its operation under low voltage conditions. For example, the series combination of diode-connected transistor 13.sub.A and diode-connected high voltage transistor 15HV.sub.A in the V.sub.A input leg of circuit 10 presents two threshold voltage drops in series. For current-day technology, these voltage drops require voltage V.sub.BAT to be at least about 2.7 volts to operate properly, preventing operation as the battery discharges below that level and thus limiting the useful battery life of the system. Further, based upon observations, the drain-to-source voltages of transistors 13.sub.A and 15HV.sub.A in the V.sub.A input leg usually do not match the drain-to-source voltages of transistors 13.sub.A and 15HV.sub.A in the V.sub.B input leg as a result of this conventional construction. This systematic mismatch is reflected by an offset voltage of the differential amplifier of this conventional reverse current protection circuit 10, and thus by error at its output.

(22) According to an embodiment, a reverse current protection circuit is constructed to have a low headroom requirement, allowing operation at low battery voltages and thus extending the battery life of the system. For example, a reverse current protection circuit according to this embodiment includes a low voltage input stage capable of sensing over wide input swings, and with better matching of circuit conditions to reduce the offset voltage of its amplifier stage.

(23) Referring to FIG. 5, reverse current protection circuit 40 includes the combination of an input stage of a differential amplifier that senses the differential voltage across terminals BAT and ACC_PWR, along with an output stage that controls power transistors 34. In a first input leg (the “V.sub.A input leg”) of the differential amplifier input stage, a voltage V.sub.A is developed at the node at which a resistor R.sub.1 is connected to diode-connected p-channel MOS transistor 51.sub.A; the opposite side of resistor R.sub.1 is connected to terminal BAT. An equivalent resistor R.sub.1 in the second input leg (the “V.sub.B input leg”) is connected between terminal ACC_PWR and diode-connected PMOS transistor 51.sub.B. Programmable offset voltage source 50 pulls current from the V.sub.A node or the V.sub.B node, depending on the operating mode, to cause an offset in the voltages V.sub.A and V.sub.B corresponding to the desired forward or reverse voltage between terminals BAT and ACC_PWR to be regulated. Similarly as described above, the polarity of the voltage V.sub.REV applied by offset voltage source 50 is selected by mode signal MODE that indicates whether reverse current protection circuit 40 is in an ideal diode operating mode or a comparator mode. As in the circuit of FIG. 2, offset voltage source 50 may be constructed to be trimmable, such that the current it conducts from the V.sub.A or V.sub.B input leg, as the case may be (and thus the magnitude of the offset voltage V.sub.REV), can be programmably adjusted. As before, diodes D.sub.1, D.sub.2 are connected across the two legs to limit the differential voltage ΔV=|V.sub.A−V.sub.B| to no more than a diode threshold voltage drop.

(24) According to this embodiment, low voltage cascode amplifier 60 serves as the differential amplifier input stage of reverse current protection circuit 40. As described below, the construction and operation of cascode amplifier 60 enables operation at low levels of voltage V.sub.BAT, while improving matching between the two input legs. An active load for the differential amplifier is provided by high-voltage NMOS transistors 47HV.sub.A, 47HV.sub.B having their source/drain paths connected in series with the V.sub.A and V.sub.B input legs via high-voltage NMOS enable transistors 46HV.sub.A, 46HV.sub.B, respectively, and their gates controlled by voltage reference 41. The gates of enable transistors 46HV.sub.A, 46HV.sub.B in the V.sub.A and V.sub.B input legs, respectively, are controlled in common by enable signal ENABLE generated by control circuitry elsewhere in the integrated circuit. Output voltage V.sub.AOUT at the drain of transistor 47HV.sub.B reflects the differential voltage ΔV=|V.sub.A−V.sub.B|. Transistors 47HV.sub.A, 47HV.sub.B in this active load are usually scaled (1:N) relative to transistor 47HV.sub.B in a conventional manner to define the range of output voltage V.sub.AOUT.

(25) According to the embodiment of FIG. 5, cascode amplifier 60 includes p-channel MOS transistors 61.sub.A and 62.sub.A with their source/drain paths connected in series between the drain of transistor 51.sub.A and the drain of n-channel MOS enable transistor 46HV.sub.A in the V.sub.A input leg. Similarly, the V.sub.B input leg of cascode amplifier 60 includes and p-channel MOS transistors 61.sub.B and 62.sub.B with their source/drain paths connected in series between the drain of transistor 51.sub.B and the drain of n-channel MOS enable transistor 46HV.sub.B. The gates of transistors 61.sub.A and 61.sub.B are connected to the drain of transistor 62.sub.A, while the gates of transistors 62.sub.A, 62.sub.B are biased from a replica bias leg in reverse current protection circuit 40, as described below. None of transistors 61.sub.A, 61.sub.B, 62.sub.A, 62.sub.B in the V.sub.A and V.sub.B input legs is diode-connected, so the drain-to-source voltages of transistors 61.sub.A, 61.sub.B, 62.sub.A, 62.sub.B in the amplifier input legs are not forced to a minimum of a diode threshold voltage drop. Accordingly, the necessary headroom of cascode amplifier 60 is reduced relative to that of the input amplifier stage of the conventional reverse current protection circuit 10 described above relative to FIG. 2.

(26) As mentioned above, gate bias in cascode amplifier 60 is established from a replica bias leg in the circuit, specifically replicating the V.sub.A input leg in this embodiment. Referring to FIG. 5, the replica bias leg in circuit 40 includes an equivalent resistor R.sub.1 connected between terminal BAT and the source of diode-connected PMOS transistor 51.sub.R, which is constructed to match the construction of transistor 51.sub.A in the V.sub.A input leg. The drain of transistor 51.sub.R in this replica bias leg is connected to the source of PMOS transistor 61.sub.R, which has its source/drain path connected in series with that of PMOS transistor 62.sub.R. High-voltage NMOS enable transistor 46HV.sub.R has its drain connected to the drain of transistor 62.sub.R, and receives the enable signal ENABLE at its gate; high-voltage NMOS transistor 47HV.sub.R in the active load of the amplifier has its source/drain path connected between the source of transistor 46HV.sub.R and ground, and its gate receiving a reference voltage from reference circuit 41. Transistors 61.sub.R, 62.sub.R, 46HV.sub.R, and 47HV.sub.R in the replica bias leg are constructed to match (e.g., with matching W/L ratios) corresponding transistors 61.sub.A, 62.sub.A, 46HV.sub.R, and 47HV.sub.R in the V.sub.A input leg that it replicates.

(27) A bias network establishes gate voltages in cascode amplifier 60 from the replica bias leg, according to this embodiment; in addition, this bias network clamps the voltages in cascode amplifier 60 to avoid damage from potentially high input voltages. As mentioned above, the gates of transistors 61.sub.A and 61.sub.B are biased at the drain of transistor 62.sub.A in the V.sub.A input leg. However, the gates of transistors 62.sub.A, 62.sub.B are biased at the drain voltage of transistor 62.sub.R in the replica bias leg; the gates of transistors 61.sub.R and 62.sub.R in this replica bias leg are also biased at the drain voltage of transistor 62.sub.R. By biasing these devices from the replica bias leg, none of the transistors 61.sub.A, 61.sub.B, 62.sub.A, 62.sub.B in cascode amplifier 60 are diode-connected, which allows the drain-to-source voltages of these devices to drop to less than a diode threshold voltage drop. This reduced voltage drop in the V.sub.A and V.sub.B input legs enables reverse current protection circuit 40 to function properly at lower levels of voltage V.sub.BAT, and thus deeper into the discharge of battery 32.

(28) Also, diode-connected (i.e., gate connected to drain) p-channel MOS bias transistors 63.sub.1 through 63.sub.4 operate to clamp certain voltages within cascode circuit 60 according to this embodiment. In the implementation of FIG. 5, PMOS transistors 63.sub.1 and 63.sub.2 have their source/drain paths connected in series between the drain of transistor 61.sub.R and the drain of transistor 62.sub.R, to which the gates of transistors 61.sub.R, 62.sub.R, 62.sub.A and 62.sub.B, are also connected. PMOS transistors 63.sub.3 and 63.sub.4 similarly have their source/drain paths connected in series between the drain of transistor 61.sub.A and the gates of transistors 61.sub.R, 62.sub.R, 62.sub.A and 62.sub.B. As a result, the gate-to-source voltages of transistors 62.sub.A and 62.sub.B are clamped to no more than two diode voltage drops, regardless of the voltages V.sub.BAT and V.sub.ACC_PWR. This clamping of these gate-to-source voltages protects these transistors 62.sub.A and 62.sub.B against excessive voltages, such as upon the attachment of a high voltage (˜20 volts) accessory at terminal ACC_PWR. This high voltage protection is achieved, while also permitting transistors 61.sub.A, 61.sub.B, 62.sub.A, and 62.sub.B in the differential amplifier input stage to be constructed as low-voltage transistors, in contrast to the conventional arrangement of FIG. 2 which requires high voltage (e.g., DMOS) transistors 15HV.sub.A, 15HV.sub.B to tolerate the possible high voltages at terminals BAT and ACC_PWR.

(29) As mentioned above, based upon observations, the implementation of high voltage transistors in conventional protection circuits, such as transistors 15HV.sub.A, 15HV.sub.B in circuit 10 of FIG. 2, cause mismatch between the drain-to-source voltages in one leg relative to the other, which is reflected in an increased offset voltage for the differential amplifier. According to the embodiment of FIG. 5, the clamping of gate-to-source voltages provided by this embodiment allows cascode amplifier 60 to be constructed using low voltage MOS transistors 61.sub.A, 61.sub.B, 62.sub.A, and 62.sub.B. Because these low voltage devices tend to match one another more closely than do high voltage (e.g., DMOS or DEMOS) transistors, the drain-to-source voltages of transistors 61.sub.A and 62.sub.A in the V.sub.A input leg more closely match corresponding drain-to-source voltages of transistors 61.sub.B and 62.sub.B in the V.sub.B input leg. Accordingly, the offset voltage of the differential amplifier input stage of reverse current protection circuit 40 is improved over conventional circuits, such as that described above relative to FIG. 2.

(30) In the output stage of reverse current protection circuit 40, output voltage V.sub.AOUT at the drain of transistor 47HV.sub.B is applied to gate control circuitry 49, which issues gate voltages GATE_SNS_CTRL_S/M/L to power transistors 34 in response. In a general sense, a low level of output voltage V.sub.AOUT, which generally indicates that V.sub.A≥V.sub.B, will result in one or more of power transistors 34 being turned on. For the case in which a single power transistor 34 is provided, the construction and operation of gate control circuitry 49 corresponds to that described above in connection with FIG. 2.

(31) For purposes of stability, diode-connected high voltage NMOS transistor 48HV has its drain and gate connected at output voltage V.sub.AOUT. This transistor 48HV may be scaled to be larger than transistor 47HV.sub.A, as appropriate for the desired performance. In this embodiment, the source of transistor 48HV is coupled to ground via output mode transistor 48HV_SEL and a current limiting resistor R. The gate of output mode transistor 48HV_SEL is controlled by mode signal MODE according to the particular mode of operation. As described in further detail below, output mode transistor 48HV suppresses a right-half-plane pole in the frequency response of the circuit, depending on the operating mode of the circuit.

(32) The output stage of reverse current protection circuit 40 also includes high voltage NMOS transistor 52HV, which has its source at ground and its drain biased by a bias current I.sub.PU from a regulated power supply voltage, and which receives output voltage V.sub.AOUT from the differential amplifier stage at its gate. The output of this amplifier, at the drain of transistor 52HV, is applied to comparator 54, which generates a signal FLAG. Specifically, signal FLAG is asserted in response to voltage V.sub.B≥V.sub.A such that power transistors 34 are turned off, and is communicated to control circuitry elsewhere in smartphone 100 in this example.

(33) In its general operation, reverse current protection circuit 40 is operable in two modes: an ideal diode mode in which the forward voltage from terminal BAT to terminal ACC_PWR is regulated to the offset voltage V.sub.REV, and a comparator mode in which some level of reverse current I.sub.REV is allowed but in which power transistors 34 are turned off in response to excessive voltage at terminal ACC_PWR relative to terminal BAT. As in the conventional circuit described above relative to FIG. 2, this dual mode operation is controlled by the mode signal MODE, which may be issued by control circuitry elsewhere in the system. For example, the mode signal MODE controls offset voltage source 50 to effectively add reverse voltage V.sub.REV of one polarity or the other, depending on the operating mode, to voltage V.sub.ACC_PWR to derive voltage V.sub.B applied to the corresponding leg of the differential amplifier.

(34) In the ideal diode mode of reverse current protection circuit 40 according to this embodiment, offset voltage source 50 pulls current from the V.sub.A node to cause an offset in the voltages V.sub.A and V.sub.B, such that the voltage V.sub.A=V.sub.BAT−V.sub.REV is compared with the voltage V.sub.B=V.sub.ACC_PWR. In this mode, reverse circuit protection circuit 40 enforces a forward voltage V.sub.REV from terminal BAT to terminal ACC_PWR (i.e., ensures that V.sub.ACC_PWR≤(V.sub.BAT−V.sub.REV)), via the operation of its differential amplifier stage issuing output voltage V.sub.AOUT in response to the differential voltage between voltage V.sub.A=V.sub.BAT and voltage V.sub.B=V.sub.ACC_PWR+V.sub.REV. Accordingly, output voltage V.sub.AOUT remains relatively low, so long as V.sub.A≥V.sub.V, i.e., V.sub.BAT≥(V.sub.ACC_PWR+V.sub.REV). Accordingly, this diode mode corresponds to the situation in which battery 32 is powering an accessory by a forward load current I.sub.LOAD flowing from terminal BAT to terminal ACC_PWR. If voltage V.sub.ACC_PWR rises too high (i.e., above the voltage V.sub.BAT−V.sub.REV), such that reverse current I.sub.REV from the accessory into battery 32 is threatened, then the gate-to-source voltages of transistors 61.sub.B and 62.sub.B in the V.sub.B input leg will be higher than their counterparts 61.sub.A, 62.sub.A. This will result in the V.sub.B input leg conducting a higher current, which will slew output voltage V.sub.AOUT higher. In response to this higher output voltage V.sub.AOUT, gate control circuitry 49 pulls down the gate voltages GATE_SNS_CTRL_S/M/L, throttling down the conduction through power transistors 34 and reducing the reverse current from terminal ACC_PWR toward terminal BAT. If this condition is severe enough, the higher output voltage V.sub.AOUT causes amplifier 52HV and comparator 54 to issue signal FLAG.

(35) In the comparator mode, reverse current protection circuit 40 allows reverse current I.sub.REV from terminal ACC_PWR to terminal BAT, such as to permit an accessory to charge battery 32, so long as that reverse current does not become excessive. The reverse current I.sub.REV from terminal ACC_PWR to terminal BAT is sensed by the differential amplifier of reverse current protection circuit 40 sensing the voltage between terminals BAT and ACC_PWR. The reverse current limit permitted in this comparator mode is established by offset voltage source 50, which in this mode pulls current from the V.sub.B node to cause an offset in the voltages V.sub.A and V.sub.B, such that the differential amplifier of circuit 40 compares voltage V.sub.A=V.sub.BAT with the voltage V.sub.B=V.sub.ACC_PWR−V.sub.REV. This allows a reverse current I.sub.REV of a magnitude that develops a voltage of at most V.sub.REV across power transistors 34 and 36HV (i.e., across the on-state source/drain resistances of those devices in series). If the reverse current I.sub.REV from terminal ACC_PWR increases, so that the voltage across the series source/drain paths of power transistors 34 and 36HV exceeds reverse voltage V.sub.REV, then the V.sub.B input leg of the differential amplifier conducts sufficient current to slew output voltage V.sub.AOUT high, causing gate control circuitry 49 to de-assert gate voltages GATE_SNS_CTRL_S/M/L to turn off power transistors 34, and issuing the fault signal FLAG. In response to the differential voltage ΔV=V.sub.A−V.sub.B dropping to below the permitted reverse voltage V.sub.REV, output voltage V.sub.AOUT will fall, causing one or more of gate voltages GATE_SNS_CTRL_S/M/L to turn on corresponding power transistors 34 to again permit reverse current flow. Accordingly, charging of battery 32 is controlled by reverse current protection circuit 40 in this comparator mode.

(36) As discussed above relative to the conventional circuit, the frequency response of reverse current protection circuit 40 in the ideal diode mode includes two low frequency poles, one at the gate of power transistor 34 and the other appearing at the differential amplifier output (i.e., at voltage V.sub.AOUT). In conventional circuit 10, as noted above, output voltage V.sub.AOUT is coupled to ground via a diode (18HV) to render that pole non-dominant in the frequency response. However, based upon observations, this diode can significantly slow the response time of the circuit. For example, reverse current protection circuit 40 preferably operates with a fast response time in its comparator mode, in order to efficiently manage the charging of battery 32 from the accessory.

(37) According to an embodiment, transistor 48HV_SEL is connected between the source (cathode) of diode-connected transistor 48HV and ground to provide dual-gain capability in reverse current protection circuit 40. According to this embodiment, mode signal MODE turns on output mode transistor 48HV_SEL in the ideal diode operating mode, which reduces the gain of the circuit to render the pole at V.sub.AOUT to be non-dominant in the frequency response to provide good stability in this mode. Conversely, in the comparator mode, mode signal MODE is de-asserted, which turns off output mode transistor 48HV_SEL and removes diode 48HV from affecting the gain. Accordingly, reverse current protection circuit 40 operates at a higher gain in this comparator mode, and exhibits a significantly faster response time. Precise sensing of reverse current I.sub.REV is achieved, minimizing the flow of reverse current from the attached accessory.

(38) Based upon observations, conventional power interface subsystems, such as that described above relative to FIG. 2, tend to have low sensing accuracy over wide ranges of load current. Rather, the low on-state source/drain resistance presented by the relatively large (in terms of channel width) power transistors between the battery and the external accessory limits the ability of the conventional circuit to accurately sense low current levels. Unfortunately, the wide variation of accessories that may be attached to the system present load currents that can range from milliamperes to amperes. Accordingly, precise sensing of reverse current levels cannot be maintained by conventional reverse current protection circuits.

(39) According to another embodiment, multiple power transistors 34 are provided in reverse current protection circuit 40 to provide accurate sensing at different ranges of load current, as will now be described relative to FIGS. 6A and 6B in combination with FIG. 5. In this embodiment, power transistors 34 are realized as multiple high voltage NMOS transistors, of varying sizes, with their source/drain paths connected in parallel with one another in the current path between terminals BAT and ACC_PWR, and their gates receiving separate individual gate enable signals. As shown in FIG. 5, power transistors 34 are connected between terminal BAT and the drain of transistor 36HV, and receive gate voltages GATE_SNS_CTRL_S/M/L from gate control circuitry 49 at the output of reverse current protection circuit 40.

(40) FIG. 6A illustrates an example of multiple power transistors 34 connected in parallel according to this embodiment. Specifically, three high-voltage NMOS transistors 34.sub.S, 34.sub.M, 34.sub.L are provided in this embodiment, each with its source connected to terminal BAT and its drain coupled to the drain of power transistor 36HV. Three power transistors 34 are shown in this example, but more or fewer such devices may alternatively be used. As described above, these power transistors 34.sub.S, 34.sub.M, 34.sub.L are preferably constructed using DMOS or another suitable technology to tolerate high drain-to-source voltages as may occur upon the connection of an accessory at terminal ACC_PWR. The gates of power transistors 34.sub.S, 34.sub.M, 34.sub.L receive gate voltages GATE_SNS_CTRL_S, GATE_SNS_CTRL_M, GATE_SNS_CTRL_L, respectively, from gate control circuitry 49, as will be described below. Pull-up currents I.sub.PU_S, I.sub.PU_M, I.sub.PU_L are applied to the gate of power transistor 34.sub.S, 34.sub.M, 34.sub.L, respectively, for proper bias. In this embodiment, bias currents I.sub.PU0, I.sub.PU1, I.sub.PU2 are driven by a charge pump that generates a voltage VCP sufficiently high that power transistors 34 do not exhibit a threshold voltage drop. In this embodiment, power transistors 34.sub.S, 34.sub.M, 34.sub.L have varying sizes relative to one another, from the standpoint of channel width to channel length (W/L) ratio. In this example, power transistor 34.sub.S has a smaller W/L ratio than power transistor 34.sub.M, which in turn has a smaller W/L ratio than power transistor 34.sub.L. Usually, these variations in W/L ratio are realized by varying the width of the MOS transistor channel from one transistor to the next, while maintaining the same channel length to otherwise maintain good device matching. The on-state source/drain resistance of an MOS transistor varies inversely with the W/L ratio of the device, such that larger transistors will exhibit less resistance in the on state than will smaller transistors. Accordingly, the on-state resistance of power transistor 34.sub.S will be higher than that of power transistor 34.sub.M, which in turn will have a higher resistance than power transistor 34.sub.L. The particular W/L ratios and corresponding resistances of power transistors 34.sub.S, 34.sub.M, 34.sub.L relative to one another, and the number of those transistors, will depend on the sensitivity range desired for a particular application of power interface subsystem 25. The power transistors 34.sub.S, 34.sub.M, 34.sub.L have appropriate relative device sizes that are suitable for those applications.

(41) FIG. 6B illustrates an example of gate control circuitry 49, which generates gate voltages GATE_SNS_CTRL_S, GATE_SNS_CTRL_M, GATE_SNS_CTRL_L for power transistors 34.sub.S, 34.sub.M, 34.sub.L, respectively. In this embodiment, multiple high voltage NMOS transistors 49HV.sub.S, 49HV.sub.M, 49HV.sub.L have their gates connected to receive output voltage V.sub.AOUT from the drain of transistor 47HV.sub.B (FIG. 5). Each of transistors 49HV.sub.S, 49HV.sub.M, 49HV.sub.L has its source coupled to ground by a corresponding resistor RPD.sub.S, RPD.sub.M, RPD.sub.L, respectively, and its drain connected to the source-drain path of a corresponding high voltage NMOS enable transistor 59HV.sub.0, 59HV.sub.1, 59HV.sub.2, respectively. Bias currents I.sub.PU_S, I.sub.PU_M, I.sub.PU_L at the gates of power transistors 34.sub.S, 34.sub.M, 34.sub.L (FIG. 6A) are also received at the drains of enable transistors 59HV.sub.0, 59HV.sub.1, 59HV.sub.2, respectively, from which gate voltages GATE_SNS_CTRL_S, GATE_SNS_CTRL_M, GATE_SNS_CTRL_L are respectively driven. Transistors 49HV.sub.S, 49HV.sub.M, 49HV.sub.L and their source resistors RPD.sub.S, RPD.sub.M, RPD.sub.L may be scaled relative to one another and to the relative magnitudes of bias currents I.sub.PU_S, I.sub.PU_M, I.sub.PU_L.

(42) As mentioned above, power transistors 34.sub.S, 34.sub.M, 34.sub.L are differently sized from one another to present varying on-state source/drain resistances. According to this embodiment, gate control circuitry 49 can enable a subset of these power transistors 34.sub.S, 34.sub.M, 34.sub.L to select the sensitivity with which the current between terminals BAT and ACC_PWR is sensed by reverse current protection circuit. Gate control circuitry 49 performs this selection by enable signals EN_FET_S, EN_FET_M, and EN_FET_L that selectively turn on or off series transistors 59HV.sub.0, 59HV.sub.1, 59HV.sub.2, respectively; these enable signals EN_FET_S/M/L may also control the corresponding bias current to turn off the corresponding power transistor 34 when de-selected. Conversely, assertion of an enable signal, e.g., enable signal EN_FET_M, will enable its bias current I.sub.PU_M and turn on its enable transistor 59HV.sub.1, allowing its corresponding transistor 49HV.sub.M to control the state of gate enable signal GATE_SNS_CTRL_M, and thus the state of that power transistor 34.sub.M, in response to the output voltage V.sub.AOUT. As described above, a high level of output voltage V.sub.AOUT in response to the voltages at terminals BAT, ACC_PWR, will turn on the enabled ones of transistors 49HV.sub.S, 49HV.sub.M, 49HV.sub.L, which in turn will pull the corresponding gate voltages GATE_SNS_CTRL_S/M/L toward ground, and reduce the gate drive of power transistors 34.sub.S, 34.sub.M, 34.sub.L, respectively.

(43) As shown in FIG. 6B, the states of enable signals EN_FET_S/M/L are determined by the contents of configuration register 65 according to this embodiment. The contents of configuration register 65 may be set by the system user, either by programming the desired state or automatically, such as based on identification of the accessory attached at power terminal ACC_PWR and its expected current load. For example, if the attached accessory will draw a relatively light current load, configuration register 65 may be set to assert only enable signal EN_FET_S, so that only the smallest power transistor 34.sub.S is turned on during normal operation (and is responsive to output voltage V.sub.AOUT through operation of transistor 49HV.sub.S); power transistors 34.sub.M and 34.sub.L will be held off as a result. In this light load condition, the higher on-state resistance of transistor 34.sub.S will provide maximum precision in the sensing of current between terminals BAT and ACC_PWR, in either the ideal diode mode (forward current) or the comparator mode (reverse current). For medium load conditions, configuration register 65 may be set so that enable signals EN_FET_S and EN_FET_M are asserted and enable signal EN_FET_L is de-asserted; in this case, power transistors 34.sub.S and 34.sub.M, in parallel, will be turned on during operation, and the largest power transistor 34.sub.L will remain off. The level of output voltage V.sub.AOUT will operate to turn off transistors 49HV.sub.S and 49HV.sub.M and thus power transistors 34.sub.S, 34.sub.M, in the event of a fault, as described above. In this condition, a medium level of on-state resistance is provided, such that the current sensing precision will be suitable for a medium level of forward or reverse current, while also providing adequate conduction for that load current. For the highest load currents, configuration register 65 may be set to assert all three enable signals EN_FET_S, EN_FET_M, and EN_FET_L, turning on all three power transistors 34.sub.S, 34.sub.M, 34.sub.L in parallel, and presenting the lowest series resistance to the current path between terminals BAT and ACC_PWR. At this large load current, this lowest series resistance will still allow adequate sensing precision and the appropriate conduction. All three of transistors 49HV.sub.S, 49HV.sub.M, 49HV.sub.L will respond to output voltage V.sub.AOUT in this case, turning off power transistors 34.sub.S, 34.sub.M, 34.sub.L in the event of a fault.

(44) Configuration register 65 may assert enable signals EN_FET_S/M/L in other combinations as may be desired for a particular application. For example, the medium current sensing precision may be selected by asserting only enable signal EN_FET_M and not the others, if desired.

(45) As discussed above, this embodiment provides the ability to more accurately and precisely sense the forward and reverse current between the system battery and an attached accessory, even over the wide range of load currents that can be presented by the many varied accessories now available for modern smartphones and other battery-powered electronic systems. This accurate precision is obtained while still maintaining the necessary performance by providing sufficient forward drive current and minimizing reverse current.

(46) Accordingly, the various embodiments described above provide important advantages in the construction and functionality of a power interface subsystem for a battery-powered electronic system, such as a modern smartphone, tablet computer and notebook computer. The useful battery life of such systems is extended by the ability of an embodiment to operate at significantly lower headroom, without the need of high voltage devices in the amplifier stage of the reverse current protection circuit while still tolerating high accessory voltages. Improved performance due to better matching of voltages in the amplifier stage is also attained. Dual gain performance is realized according to another embodiment, such that stability is maintained when operating in a reverse current blocking mode in combination with improved response times when operating in a comparator mode in which reverse current into the battery is permitted. Also, the current sensing precision is achieved over a wide range of possible load currents according to an embodiment.

(47) The above description presents the various embodiments as composed of MOS transistors of particular channel conductivity types (n-channel and p-channel). Alternatively, these circuits may be realized using transistors of the opposite channel conductivity types, with the bias polarity etc. reversed as appropriate. Further in the alternative, these circuits may be realized in whole or in part using bipolar transistors, in which case the transistor conduction path corresponds to a collector-emitter path rather than a source/drain path, and the transistor control terminal corresponds to a base rather than a gate.

(48) Modifications are possible in the described embodiments, and other embodiments are possible, within the scope of the claims.