A switching circuit, a power management circuit, a chip and an electronic device
Patent Information
- Application Number
- CN202311116862.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2043-08-30
AI Technical Summary
[0008]本申请实施例提供的开关电路包括:晶体管,晶体管的第一端用于接收第一信号,晶体管的第二端用于输出第二信号;电流镜模块,电流镜模块的输入端连接连接晶体管的第一端,电流镜模块包括第一支路和第二支路,第二支路的电流大于第一支路的电流,第二支路连接晶体管的控制端;开关模块,开关模块连接第一支路和第二支路,开关模块用于控制晶体管的导通或断开。通过上述方式,第二支路可以按比例复制第一支路的电流并对晶体管的栅极进行充电,迅速抬高晶体管的栅极电位,从而迅速关断晶体管,整个开关电路断开,提高电路的安全性。
Smart Images

Figure CN117040503B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of circuit technology, specifically to a switching circuit, a power management circuit, a chip, and an electronic device. Background Technology
[0002] Power management circuits are typically used in Battery Management System (BMS) chips. The BMS chip is installed inside electronic devices to manage the charging and discharging of the device's battery. When the electronic device is connected to an adapter, the adapter charges the battery, generating either VBUS voltage or PACK voltage (the voltages corresponding to the two different adapters). The chip can select one of these voltages—VBUS, PACK, or the battery voltage VBAT—to power its internal modules. The design of the high-voltage switch is particularly important when selecting between VBUS, PACK, and VBAT. Summary of the Invention
[0003] This application provides a switching circuit, a power management circuit, a chip, and an electronic device, which can realize the rapid shutdown of the switching circuit and improve circuit safety.
[0004] This application provides a switching circuit, characterized in that the switching circuit includes: a transistor, a first terminal of which is used to receive a first signal, and a second terminal of which is used to output a second signal; a current mirror module, the input terminal of which is connected to the first terminal of the transistor, the current mirror module including a first branch and a second branch, the current in the second branch being greater than the current in the first branch, and the second branch being connected to the control terminal of the transistor; and a switching module, which is connected to the first branch and the second branch, and is used to control the transistor to be turned on or off.
[0005] This application also provides a power management circuit, which includes a high-voltage switch, and the high-voltage switch includes the switching circuit described above.
[0006] This application also provides a chip that includes the power management circuit described above.
[0007] This application also provides an electronic device, which includes: a battery; a charging interface; and a chip, wherein the chip is as described above, a first pin of the chip is connected to the battery, and a second pin of the chip is connected to the charging interface.
[0008] The switching circuit provided in this application includes: a transistor, the first terminal of which is used to receive a first signal, and the second terminal of which is used to output a second signal; a current mirror module, the input terminal of which is connected to the first terminal of the transistor, the current mirror module including a first branch and a second branch, the current of the second branch being greater than the current of the first branch, and the second branch being connected to the control terminal of the transistor; and a switching module connected to the first branch and the second branch, the switching module being used to control the transistor to turn on or off. In this way, the second branch can proportionally replicate the current of the first branch and charge the gate of the transistor, rapidly raising the gate potential of the transistor, thereby rapidly turning off the transistor, disconnecting the entire switching circuit, and improving circuit safety. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 This is a schematic diagram of the structure of the first embodiment of the power management circuit provided in this application;
[0011] Figure 2 This is a schematic diagram of the structure of the second embodiment of the power management circuit provided in this application;
[0012] Figure 3 This is a schematic diagram of the connection between the first pin PIN1 and the second pin PIN2 in one embodiment;
[0013] Figure 4 yes Figure 2 A circuit diagram of the first embodiment of the switching circuit for medium and high voltage switches;
[0014] Figure 5 yes Figure 2 A circuit diagram of the second embodiment of the switching circuit for medium and high voltage switches;
[0015] Figure 6 yes Figure 2 A circuit diagram of the third embodiment of the switching circuit for medium and high voltage switches;
[0016] Figure 7 This is a schematic diagram of the third embodiment of the power management circuit provided in this application;
[0017] Figure 8 This is a connection diagram of the voltage detection module 40 in one embodiment;
[0018] Figure 9This is a circuit diagram of the voltage detection module 40 in one embodiment;
[0019] Figure 10 This is a schematic diagram of the fourth embodiment of the power management circuit provided in this application;
[0020] Figure 11 This is a schematic diagram of the structure of an embodiment of the chip provided in this application;
[0021] Figure 12 This is a schematic diagram of the structure of an embodiment of the electronic device provided in this application. Detailed Implementation
[0022] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0023] In the description of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0024] "A and / or B" includes the following three combinations: A only, B only, and a combination of A and B.
[0025] The use of "applies to" or "configured to" in this application implies open and inclusive language, which does not exclude the applicability to or configuration to devices performing additional tasks or steps. Additionally, the use of "based on" implies openness and inclusivity, because processes, steps, calculations, or other actions "based on" one or more of the stated conditions or values may in practice be based on additional conditions or values beyond those stated.
[0026] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0027] See Figure 1 , Figure 1 This is a schematic diagram of the structure of the first embodiment of the power management circuit provided in this application. The power management circuit 100 includes a first pin PIN1, a second pin PIN2, and a power module 10.
[0028] The first pin PIN1 is connected to the battery, and the second pin PIN2 is connected to the charging interface. The charging interface is used to connect an adapter to an external power source. The power module 10 is used to generate a set voltage signal when powered by the first pin PIN1 (battery) or the second pin PIN2 (adapter). The set voltage signal is used to power the modules in the circuit or other modules in the peripheral circuit.
[0029] Optionally, in one embodiment, the power module 10 may include a reference voltage generation circuit and a low dropout regulator (LDO). The reference voltage generation circuit generates a reference voltage signal Vref when powered by a battery or adapter, and then inputs the reference voltage signal Vref to the low dropout regulator. The low dropout regulator generates a set voltage signal, such as a VDD signal, based on the reference voltage signal Vref to power other modules in the chip.
[0030] This embodiment mainly includes two power supply modes:
[0031] First power mode: After the second pin PIN2 is powered on, when the voltage of the battery (first pin PIN1) is greater than the threshold voltage, the electrical path between the first pin PIN1 and the power module 10 is activated, or when the voltage of the battery is less than the threshold voltage, the electrical path between the second pin PIN2 and the power module 10 is activated.
[0032] Second power mode: After the second pin PIN2 is powered on, the electrical path between the second pin PIN2 and the power module 10 is selected.
[0033] Understandably, the trigger condition for both power modes is that the second pin PIN2 is powered on, that is, the second pin PIN2 is connected to an external power source for charging through the adapter.
[0034] Specifically, in the first power mode, when the second pin PIN2 is connected to a power source for charging via an adapter, it is determined whether the current battery voltage is greater than a threshold voltage. If the battery voltage is greater than the threshold voltage, the battery is used to supply power to the power module 10, i.e., the electrical path between the first pin PIN1 and the power module 10 is selected. If the battery voltage is less than the threshold voltage, the adapter is used to supply power to the power module 10, i.e., the electrical path between the second pin PIN2 and the power module 10 is selected. Understandably, in the first power mode, the power supply method for the power module 10 is mainly selected based on the battery voltage. If the adapter is not connected (not charging), only battery power can be used. If the battery voltage gradually decreases to an insufficient level to supply power, the entire system shuts down. If the adapter is connected for charging, the system selects between battery power and adapter power based on the battery voltage.
[0035] Specifically, in the second power supply mode, when the second pin PIN2 is connected to a power source for charging via an adapter, the power supply module 10 is directly powered by the adapter, thus enabling the electrical path between the second pin PIN2 and the power supply module 10. Understandably, in the second power supply mode, if the adapter is not connected (not charging), only battery power is available. If the battery voltage gradually decreases to an insufficient level to provide power, the entire system shuts down. If the adapter is connected for charging, then the adapter provides power.
[0036] Optionally, the power management circuit 100 further includes a gating module 20 and a control module 30.
[0037] Among them, the gating module 20 is connected to the first pin PIN1, the second pin PIN2 and the power module 10; the control module 30 is connected to the gating module 30.
[0038] Optionally, such as Figure 2 As shown, Figure 2 This is a schematic diagram of the second embodiment of the power management circuit provided in this application. The power management circuit 100 includes a first pin PIN1, a second pin PIN2, a power module 10, a gating module 20, and a control module 30.
[0039] The selection module 20 specifically includes a first switch S1 and a second switch S2. The first end of the first switch S1 is connected to the first pin PIN1, and the second end of the first switch S1 is connected to the input terminal of the power module 10. The first end of the second switch S2 is connected to the second pin PIN2, and the second end of the second switch S2 is connected to the input terminal of the power module 10. The first switch S1 and the second switch S2 can be high-voltage switches, and their on / off states can be controlled by the control module 30. The specific circuit structure will be described in subsequent embodiments.
[0040] Optionally, the power management circuit 100 further includes a comparator COMP, the first input of which is used to receive a threshold voltage V. 阈值 The second input of comparator COMP is connected to the first pin PIN1, and the output of comparator COMP is connected to the control module 30.
[0041] In one embodiment, the threshold voltage V 阈值 It can be 3.1V.
[0042] Specifically, in the first power mode, after the second pin PIN2 is powered on, when the battery voltage is greater than the threshold voltage, the control module 30 controls the gating module 20 to select the electrical path between the first pin PIN1 and the power module 10 (turn on switch S1, turn off switch S2), or when the battery voltage is less than the threshold voltage, the control module 30 controls the gating module 20 to select the electrical path between the second pin PIN2 and the power module 10 (turn off switch S1, turn on switch S2); in the second power mode, after the second pin PIN2 is powered on, the control module 30 controls the gating module 20 to select the electrical path between the second pin PIN2 and the power module 10 (turn off switch S1, turn on switch S2).
[0043] Understandably, the control terminal of the second switch S2 mentioned above can also be further controlled by the wake-up signal WAKE. The wake-up signal WAKE is input by the third pin (not shown in the figure) and is used to indicate that the second pin PIN2 is powered on.
[0044] Optionally, in one embodiment, the second pin PIN2 includes or connects to one or both of the PACK pin and the VBUS pin. For example... Figure 3 As shown, Figure 3 This is a schematic diagram of the connection between the first pin PIN1 and the second pin PIN2 in one embodiment.
[0045] The PACK and VBUS pins are two different types of adapter charging pins, and only one can be powered on at a time. Specifically, diodes are placed between PIN1 and PIN2, between PACK and PIN2, and between VBUS and PIN2. When PACK and VBUS are not powered on, the voltage of PIN2 is equal to the voltage of PIN1, i.e., the battery voltage. When PACK is powered on, since the charging voltage is generally greater than the battery voltage, the voltage of PIN2 is equal to the voltage of PACK. Similarly, when VBUS is powered on, the voltage of PIN2 is equal to the voltage of VBUS.
[0046] See Figure 4 , Figure 4 yes Figure 2 A circuit diagram of the first embodiment of the switching circuit of the medium and high voltage switch. The switching circuit 400 includes MOSFET M1, MOSFET M2 and a switching module.
[0047] The first terminal of MOSFET M1 is used to receive the first signal Vin. MOSFET M1 includes a body diode D. M1 Body diode D M1 The anode of the diode is connected to the first terminal of the MOSFET M1, and the body diode is connected to the first terminal of the MOSFET D. M1 The cathode of MOSFET M1 is connected to the second terminal of MOSFET M2; the first terminal of MOSFET M2 is connected to the second terminal of MOSFET M1, and the second terminal of MOSFET M2 is used to output the second signal Vout. MOSFET M2 includes a body diode D. M2 Body diode D M2 The anode of the diode is connected to the second terminal of the MOSFET M2, and the body diode is connected to the second terminal of the MOSFET M2. M2 The cathode is connected to the first terminal of MOSFET M2; the switching module is connected to the control terminal of MOSFET M1 and the control terminal of MOSFET M2, and the switching module is used to control the conduction or disconnection of MOSFET M1 and MOSFET M2.
[0048] Optionally, MOSFETs M1 and M2 are PMOS transistors. The source of MOSFET M1 is used to receive the first signal Vin, and the source of MOSFET M2 is used to output the second signal Vout. The drains of MOSFET M1 and M2 are connected, and the gates of MOSFET M1 and M2 are connected to the switching module.
[0049] Optionally, the switching circuit 400 further includes a resistor R0. The first end of the resistor R0 is used to receive the power supply voltage signal VCC, and the second end of the resistor R0 is connected to the gate of MOSFET M1 and the gate of MOSFET M2. The resistor R0 is mainly used to provide bias voltage to the gates of MOSFET M1 and MOSFET M2, preventing the gates of MOSFET M1 and MOSFET M2 from being left floating.
[0050] Optionally, the switching circuit 400 also includes a diode D0, the cathode of which is connected to the source of MOSFET M1, and the anode of which is connected to the gate of MOSFET M1 and the gate of MOSFET M2. The diode D0 primarily serves to protect MOSFETs M1 and M2.
[0051] Specifically, MOSFETs M1 and M2 are connected back-to-back (i.e., the cathodes of the body diodes of M1 and M2 are connected together). When MOSFET M1 is not turned on, the current at pin PIN1 or pin PIN2 flows through the body diode D of MOSFET M1. M1 The voltage is transferred to the drains of MOSFETs M1 and M2, ensuring stable potentials at their drains and preventing a floating state in the circuit. MOSFETs M1 and M2 are back-to-back structures. Due to the unidirectional conduction characteristic of diodes, the body diode D between the drain of MOSFET M2 and the source of the second MOSFET... M2 This prevents the voltage at the drain of MOSFET M2 from being transmitted to the source of MOSFET M2. Therefore, the voltage at the first pin PIN1 or the second pin PIN2 will not be transmitted to the output terminal, thus avoiding leakage current in the switching circuit.
[0052] When the switching module pulls down the voltage of the gate of MOSFET M1 and the gate of MOSFET M2, MOSFET M1 and MOSFET M2 are turned on, and the voltage of the first pin PIN1 or the second pin PIN2 is output through the source of the second MOSFET, which is equivalent to the entire switching circuit being turned on.
[0053] When the switching module pulls down the voltage between the drains of MOSFET M1 and MOSFET M2, the entire switching circuit is disconnected.
[0054] See Figure 5 , Figure 5 yes Figure 2 A circuit diagram of a second embodiment of a medium- and high-voltage switch circuit, wherein the switch circuit 400 includes a transistor M, a current mirror module, and a switch module.
[0055] The transistor M has a first terminal for receiving a first signal Vin and a second terminal for outputting a second signal Vout. The input terminal of the current mirror module is connected to the first terminal of the transistor M. The current mirror module includes a first branch B1 and a second branch B2. The current in the second branch B2 is greater than the current in the first branch B1. The second branch B2 is connected to the control terminal of the transistor M. The switch module is connected to the first branch B1 and the second branch B2. The switch module is used to control the transistor M to turn on or off.
[0056] Optionally, transistor M is a PMOS transistor, and the current mirror module includes two symmetrical PMOS transistors. Since the size (width-to-length ratio) of the MOS transistor in the second branch B2 is larger than that of the MOS transistor in the first branch B1, the current formed in the second branch B2 is greater than the current in the first branch B1.
[0057] Specifically, the second branch B2 can proportionally replicate the current of the first branch B1 and charge the gate of transistor M, raising the gate potential of transistor M. When the gate potential of transistor M reaches a certain value, such that |Vgs| is less than the conduction threshold, transistor M will turn off. Since the high-voltage switch has requirements for turn-off time and needs to turn off quickly, a higher current ratio can be set (current ratio = width-to-length ratio of the MOS transistor in the second branch B2 ÷ width-to-length ratio of the MOS transistor in the first branch B1) to quickly pull up the gate potential of transistor M, thereby quickly turning off transistor M and disconnecting the entire switching circuit.
[0058] When the switching module pulls down the gate voltage of transistor M, transistor M turns on, which is equivalent to the entire switching circuit turning on.
[0059] In combination with the above Figure 4 and Figure 5 For an example, see [link to example]. Figure 6 , Figure 6 yes Figure 2 A circuit diagram of the third embodiment of the switching circuit of the medium and high voltage switch. The switching circuit 400 includes MOSFETs M1, M2, M3, and M4, resistors R1 and R2, and diode D1.
[0060] The first terminal of MOSFET M1 is used to receive the first signal Vin. MOSFET M1 includes a body diode D. M1 Body diode D M1 The anode of the diode is connected to the first terminal of the MOSFET M1, and the body diode is connected to the first terminal of the MOSFET D. M1 The cathode of MOSFET M1 is connected to the second terminal of MOSFET M2; the first terminal of MOSFET M2 is connected to the second terminal of MOSFET M1, and the second terminal of MOSFET M2 is used to output the second signal Vout. The body diode of MOSFET M2 is the second body diode D. M2 Second body diode DM2 The anode of the diode is connected to the second terminal of the MOSFET M2, and the second body diode is connected to the second terminal of the MOSFET D. M2 The cathode is connected to the first terminal of the MOS transistor M2.
[0061] Optionally, MOS transistors M1 and M2 are PMOS transistors. The source of MOS transistor M1 is used to receive the first signal Vin, and the source of MOS transistor M2 is used to output the second signal Vout. The drains of MOS transistors M1 and M2 are connected, and the gates of MOS transistors M1 and M2 are connected.
[0062] Furthermore, MOSFETs M3 and M4 form a current mirror. MOSFET M3 is a PMOS transistor, with its source connected to the drain of MOSFET M1 and its drain connected to its gate. MOSFET M4 is also a PMOS transistor, with its source connected to the drain of MOSFET M2 and its gate connected to the gate of MOSFET M3. The first terminal of resistor R1 is connected to the drain of MOSFET M1, and the second terminal of resistor R1 is connected to the gate of MOSFET M3. MOSFET M4 is larger than MOSFET M3.
[0063] Furthermore, MOSFETs M5, M6, M7, and M8 constitute a switching module. MOSFETs M5, M6, M7, and M8 are NMOS transistors. The drains of MOSFETs M5 and M7 are connected to the gate of MOSFET M2, the drain of MOSFET M6 is connected to the drain of MOSFET M3, and the drain of MOSFET M8 is connected to the source of MOSFET M2. The sources of MOSFETs M5, M6, M7, and M8 are all grounded. The gate of MOSFET M5 receives the first control signal S1 (generated by the control module), the gate of MOSFET M6 receives the second control signal S2 (generated by the control module), the gate of MOSFET M7 receives the wake-up signal WAKE, and the gate of MOSFET M8 receives the reset signal RST.
[0064] Specifically, MOSFETs M1 and M2 are connected back-to-back (i.e., the cathodes of the body diodes of M1 and M2 are connected together, i.e., node B). When MOSFET M1 is not turned on, the current from pin PIN1 or pin PIN2 flows through the body diode D of MOSFET M1. M1 The voltage is transmitted to nodes A and B, ensuring stable potentials at nodes A and B and preventing the circuit from floating. MOSFETs M1 and M2 are back-to-back. Due to the unidirectional conduction characteristic of diodes, the body diode D between the source of node B and the second MOSFET... M2This prevents the voltage at node B from being transmitted to the source of MOSFET M2. Therefore, the voltage at pin PIN1 or pin PIN2 will not be transmitted to the output, thus avoiding leakage in the switching circuit.
[0065] When the first control signal S1 turns on MOSFET M5, or the wake-up signal WAKE turns on MOSFET M7, node A is pulled low, and MOSFETs M1 and M2 turn on, thus activating the entire switching circuit. Diode D1 is used to clamp the voltage and prevent the MOSFETs from being damaged.
[0066] When the second control signal S2 turns on MOSFET M6, the current mirror formed by MOSFETs M3 and M4 operates. MOSFET M4 can proportionally replicate the current of MOSFET M3 and charge node A, raising the potential of node A. Since the gates of MOSFETs M1 and M2 are both connected to node A, when the potential of node A reaches a certain value, causing |Vgs| of MOSFETs M1 and M2 to be less than the turn-on threshold, MOSFETs M1 and M2 will turn off. Because the high-voltage switch has a time requirement for turn-off and needs to turn off quickly, a higher current ratio can be set (current ratio = width-to-length ratio of M4 ÷ width-to-length ratio of M3) to quickly pull node A high, thereby quickly turning off MOSFETs M1 and M2 and cutting off the switching circuit.
[0067] See Figure 7 , Figure 7 This is a schematic diagram of the third embodiment of the power management circuit provided in this application. The power management circuit 100 includes a first pin PIN1, a second pin PIN2, a power module 10, a gating module 20, a control module 30, and a voltage detection module 40.
[0068] The first pin PIN1 is connected to the battery, and the second pin PIN2 is connected to the charging interface, which is used to connect an adapter to an external power source. The power module 10 is used to generate a set voltage signal when powered by the first pin PIN1 (battery) or the second pin PIN2 (adapter). The set voltage signal is used to power the modules in the circuit or other modules in the peripheral circuit. The gating module 20 is connected to the first pin PIN1, the second pin PIN2 and the power module 10. The control module 30 is connected to the gating module 30.
[0069] Furthermore, the voltage detection module 40 is connected to the second pin PIN2 and the control module 30. The voltage detection module 40 is used to detect the voltage of the electrical signal of the second pin PIN2, and when the detected voltage is greater than the set voltage threshold (to detect whether the adapter is used for charging), it sends a prompt signal to the control module 30.
[0070] Optionally, in one embodiment, in conjunction with the above... Figure 3 In one embodiment, the voltage detection module 40 is used to detect the voltage of the PACK pin and the VBUS pin respectively. Figure 8 As shown, Figure 8 This is a connection diagram of the voltage detection module 40 in one embodiment.
[0071] Specifically, the voltage detection module 40 includes a PACK voltage detection module 41 and a VBUS voltage detection module 42. The PACK voltage detection module 41 is used to detect the voltage of the electrical signal on the PACK pin and to send a prompt signal to the control module 30 when the detected voltage is greater than a set voltage threshold. The VBUS voltage detection module 42 is used to detect the voltage of the electrical signal on the VBUS pin and to send a prompt signal to the control module 30 when the detected voltage is greater than a set voltage threshold.
[0072] Optionally, the ACK voltage detection module 41 and the VBUS voltage detection module 42 can adopt similar circuit structures. The circuit of the voltage detection module 40 is described below, such as... Figure 9 As shown, Figure 9 This is a circuit diagram of the voltage detection module 40 in one embodiment.
[0073] The voltage detection module 40 includes resistors R11, R12, and R13, PMOS transistors M11, M12, M13, and M14, a first NPN transistor Q1, a second NPN transistor Q2, a first inverter INV1, and a second inverter INV2.
[0074] Understandably, PMOS transistors M11, M12, M13, and M14 form a current mirror. PMOS transistors M12, M13, and M14 can proportionally replicate the current of PMOS transistor M11, providing bias current for the branch of the second NPN transistor Q2 and the first inverter INV1 and the second inverter INV2. If the first inverter INV1 and the second inverter INV2 were directly connected to the power supply, the power consumption would be relatively high, and the bias current would be unstable. Providing bias current through a current mirror reduces power consumption and ensures a more stable and controllable bias current.
[0075] In this configuration, the first terminal of resistor R11 is connected to the second pin (PACK pin or VBUS pin); PMOS transistors M11, M12, M13, and M14 share a common source and common gate, with their sources connected to the second terminal of resistor R11; the first terminal of resistor R12 is connected to the drain of PMOS transistor M11; the collector of the first NPN transistor Q1 is connected to the second terminal of resistor R12, and the emitter of the first NPN transistor Q1 is grounded; the collector of the second NPN transistor Q2 is connected to the drain of PMOS transistor M12, and the second NPN transistor... The base of Q2 is connected to the base of the first NPN transistor Q1; the first end of resistor R13 is connected to the emitter of the second NPN transistor Q2, and the second end of resistor R13 is grounded; the power supply terminal of the first inverter INV1 is connected to the drain of PMOS transistor M13, and the input terminal of the first inverter INV1 is connected to the drain of PMOS transistor M12; the power supply terminal of the second inverter INV2 is connected to the drain of PMOS transistor M14, the input terminal of the second inverter INV2 is connected to the output terminal of the first inverter INV1, and the output terminal of the second inverter INV2 is connected to the control module 30.
[0076] The following is about Figure 9 The circuit principle will be introduced as follows:
[0077] Taking the first terminal of resistor R11 connected to the PACK pin as an example, as the voltage on the PACK pin gradually increases, the currents I2 (current flowing through resistor R1) and I1 (current flowing through resistor R3) can be expressed as:
[0078]
[0079] Where PACK is the voltage at the PACK pin, V TH V is the turn-on threshold voltage of M11. be1 V is the voltage between the base and emitter of Q1. be2 Δ is the voltage between the base and emitter of Q2. Vbe For V be1 and V be2 The difference.
[0080] As the voltage at the PACK pin increases, when I2 = I1, the threshold flip condition is met (the PACK voltage reaches the threshold), and a Det signal is emitted. The PACK voltage can be solved using the above two equations.
[0081]
[0082] The Det signal is a digital signal used to indicate that the PACK pin has power connected to the adapter.
[0083] Optionally, in one embodiment, if multiple thresholds are required, an impedance unit can be added to the circuit described above. The first end of the impedance unit is connected to the second end of the resistor R11, the second end of the impedance unit is grounded, and the resistance value of the impedance unit is configured to be adjustable.
[0084] Understandably, the impedance unit can use multiple resistors connected in series and multiple switches to adjust the number of resistors connected in parallel in the original circuit. Figure 9 The example includes 3 resistors and 3 switches. By controlling the switches, the number of resistors connected in parallel to the original circuit can be adjusted to 0, 1, 2, or 3. Therefore, 4 different detection thresholds (4 levels) can be set for the voltage detection module. If more levels are needed, more series resistors and switches can be added.
[0085] Assuming the resistance of the blocking unit is R14, considering the resistance R14, the wake-up voltage of the PACK can be expressed as:
[0086]
[0087] Therefore, by adjusting the resistance value of R4, multiple levels of the wake-up threshold can be set.
[0088] Optionally, in one embodiment, the voltage detection module 40 further includes a diode D2, the anode of which is grounded and the cathode of which is connected to the second end of the resistor R11. The diode D2 is a Zener diode and serves a protective function.
[0089] See Figure 10 , Figure 10 This is a schematic diagram of the fourth embodiment of the power management circuit provided in this application. The power management circuit 100 includes a first pin PIN1, a second pin PIN2, a power module 10, a gating module 20, a control module 30, and a virtual voltage detection module 50.
[0090] The virtual voltage detection module 50 is connected to the second pin PIN2 and the power module 10.
[0091] In one embodiment, in conjunction with the above Figure 3 In one embodiment, the second pin PIN2 is further connected to the PACK pin and the VBUS pin, and the virtual voltage detection module 50 can be connected to the PACK pin and the VBUS pin. The virtual voltage detection module 50 is used to perform charge discharge operation on the second pin PIN (PACK pin or VBUS pin) and is turned off when the power module 10 outputs a set voltage signal.
[0092] Understandably, the virtual voltage detection module 50 is used to prevent false wake-ups due to virtual voltage on the PACK or VBUS pins, and to avoid voltage spikes on the PACK or VBUS pins caused by charge accumulation, which could lead to a false wake-up of the system. When the PACK or VBUS pins are connected to the adapter, after the system wakes up, the power supply module 10 outputs a stable power, which can turn off the virtual voltage detection module 50.
[0093] In combination with the above Figures 1-10 Multiple embodiments:
[0094] In the first power mode, after the system is powered on and woken up via the PACK pin or VBUS pin, the comparator COMP compares the battery voltage VBAT with the set threshold voltage V. 阈值 If VBAT is greater than the set threshold V, then... 阈值 The selection module 20 selects pin PIN1 (VBAT) to supply power to the power module 10. When VBAT is less than the set threshold V... 阈值 Then, it automatically switches to PIN2 (PACK / VBUS, i.e., powered by the adapter). If VBAT is less than the set threshold, and the voltage of the VBUS pin or the PACK pin is less than the wake-up threshold, i.e., the adapter is unplugged and the battery voltage is insufficient to provide power, the system shuts down.
[0095] In the second power mode, after the system is powered on and woken up via the PACK pin or VBUS pin, even if VBAT is greater than the set threshold, the gating module 20 still selects the PIN2 pin to supply power to the power module 10 (i.e., after wake-up, the default power supply is selected by the adapter). When the voltage of the VBUS pin or the voltage of the PACK pin is less than the wake-up threshold, the gating module 20 selects the PIN1 pin (i.e., after the adapter is unplugged, it switches to battery power). In this case, if VBAT is less than 3.1V, the system shuts down.
[0096] like Figure 6 As shown, the second power mode is compatible with flight mode control and RST reset control. Upon entering flight mode, VBAT is forcibly activated for power supply. Both the first and second power modes' shutdown controls are hardware shutdowns, meaning the system shuts down when power supply is insufficient. In addition to hardware shutdown, this circuit also supports command shutdown (if a shutdown command is received when power supply is sufficient, the system can also be shut down). For example, when using RST for reset, switches S1 and S2 are turned off to cut off the power supply channel, and a pull-down mechanism is applied to achieve the reset function.
[0097] Optionally, when a compatible PACK is inserted, the system cannot be shut down using commands; when a VBUS is inserted, the system can be shut down using commands.
[0098] The power management circuit provided in this application includes: a first pin for connecting to a battery; a second pin for connecting to a charging interface; and a power module for generating a set voltage signal when powered by either the first or second pin. In a first power mode, after the second pin is powered on, if the battery voltage is greater than a threshold voltage, the electrical path between the first pin and the power module is selected; or if the battery voltage is less than the threshold voltage, the electrical path between the second pin and the power module is selected. In a second power mode, after the second pin is powered on, the electrical path between the second pin and the power module is selected. This method enables the selection of the power supply channel in different power modes during charging / non-charging conditions. On the one hand, it makes the selection of the power supply channel more intelligent and compatible with different charging methods; on the other hand, it facilitates scientific management of battery power supply and extends battery life.
[0099] In a further embodiment, a voltage detection module can be used to detect multiple voltage levels of the charging interface and realize multi-threshold wake-up operation.
[0100] In a further embodiment, a high-voltage switch design is adopted. The switching circuit includes: a first MOSFET, the first terminal of which is used to receive a first signal; the first MOSFET includes a first body diode, the anode of which is connected to the first terminal of the first MOSFET, and the cathode of which is connected to the second terminal of the first MOSFET; a second MOSFET, the first terminal of which is used to output a second signal; the second terminal of which is connected to the second terminal of the first MOSFET; the second MOSFET includes a second body diode, the anode of which is connected to the first terminal of the second MOSFET, and the cathode of which is connected to the second terminal of the second MOSFET; and a switching module, which is connected to the control terminals of the first and second MOSFETs and is used to control the conduction or disconnection of the first and second MOSFETs. This design prevents leakage current in the high-voltage switch and improves its safety.
[0101] In a further embodiment, a high-voltage switch design is employed. The switching circuit includes: a transistor, whose first terminal receives a first signal and whose second terminal outputs a second signal; a current mirror module, whose input terminal is connected to the first terminal of the transistor, the current mirror module including a first branch and a second branch, the current in the second branch being greater than the current in the first branch, and the second branch being connected to the control terminal of the transistor; and a switching module connected to the first and second branches, used to control the transistor's on / off state. This design enables rapid shutdown of the high-voltage switch, improving its safety.
[0102] In a further embodiment, the design employing virtual charge detection can prevent the charging interface voltage from rising due to charge accumulation, thus avoiding the system being falsely woken up.
[0103] See Figure 11 , Figure 11 This is a schematic diagram of a chip embodiment provided in this application. The chip 110 includes a power management circuit 100. The power management circuit 100 is the power management circuit described in the above embodiments, or the power management circuit 100 includes a switching circuit described in the above embodiments.
[0104] See Figure 12 , Figure 12 This is a schematic diagram of an embodiment of the electronic device provided in this application. The electronic device 120 includes a chip 110, which is the chip described in the above embodiment.
[0105] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A switching circuit, characterized in that, The switching circuit includes: A transistor, wherein a first terminal of the transistor is used to receive a first signal, and a second terminal of the transistor is used to output a second signal; A current mirror module, wherein the input terminal of the current mirror module is connected to the first terminal of the transistor, the current mirror module includes a first branch and a second branch, the current of the second branch is greater than the current of the first branch, and the second branch is connected to the control terminal of the transistor; A switching module is provided, which connects the first branch and the second branch, and is used to control the transistor to turn on or off. The sources of the MOS transistors in the first branch and the second branch are both connected to the first signal; The current mirror module also includes a resistor, the first end of which is connected to the source of the MOS transistor in the first branch, and the second end of which is connected to the gate of the MOS transistor in the first branch. In the second branch, the drain of the MOS transistor is connected to the gate of the transistor; The switching module includes a fifth MOS transistor, the drain of which is connected to the drain of the MOS transistor in the second branch, the source of which is grounded, and the gate of which is used to receive a first control signal. The switching module further includes a sixth MOS transistor, the drain of which is connected to the drain of the MOS transistor in the first branch, the source of which is grounded, and the gate of which is used to receive a second control signal.
2. The switching circuit according to claim 1, characterized in that, The switching circuit further includes a first MOS transistor, and the transistor is a second MOS transistor; The first terminal of the first MOSFET is used to receive the first signal. The body diode of the first MOSFET is a first body diode. The anode of the first body diode is connected to the first terminal of the first MOSFET, and the cathode of the first body diode is connected to the second terminal of the first MOSFET. The first terminal of the second MOSFET is connected to the second terminal of the first MOSFET. The second terminal of the second MOSFET is used to output a second signal. The body diode of the second MOSFET is a second body diode. The anode of the second body diode is connected to the second terminal of the second MOSFET, and the cathode of the second body diode is connected to the first terminal of the second MOSFET. The switching module is connected to the control terminal of the first MOSFET and the control terminal of the second MOSFET, and the switching module is used to control the first MOSFET and the second MOSFET to be turned on or off.
3. The switching circuit according to claim 1, characterized in that, The current mirror module includes: The third MOS transistor, which is a PMOS transistor, has its source connected to the first terminal of the transistor and its drain connected to the gate of the transistor, and is also connected to the switching module. The fourth MOS transistor is a PMOS transistor. The source of the fourth MOS transistor is connected to the first terminal of the transistor, the gate of the fourth MOS transistor is connected to the gate of the third MOS transistor, and the drain of the fourth MOS transistor is connected to the control terminal of the transistor. A first resistor, the first end of which is connected to the first end of the transistor, and the second end of which is connected to the gate of the third MOS transistor; The fourth MOS transistor is larger than the third MOS transistor.
4. The switching circuit according to claim 3, characterized in that, The switching circuit further includes a second resistor, the first end of which is connected to the source of the fourth MOS transistor, and the second end of which is connected to the drain of the fourth MOS transistor.
5. The switching circuit according to claim 3, characterized in that, The switching circuit also includes a diode, the anode of which is connected to the drain of the fourth MOS transistor, and the cathode of which is connected to the source of the fourth MOS transistor.
6. The switching circuit according to claim 2, characterized in that, The first MOS transistor and the second MOS transistor are PMOS transistors. The source of the first MOS transistor is used to receive the first signal, and the source of the second MOS transistor is used to output the second signal. The drains of the first MOS transistor and the drains of the second MOS transistor are connected, and the gates of the first MOS transistor and the gates of the second MOS transistor are connected to the switching module.
7. A power management circuit, characterized in that, The power management circuit includes a high-voltage switch, which includes a switching circuit as described in any one of claims 1-6.
8. A chip, characterized in that, The chip includes a switching circuit as described in any one of claims 1-6, or a power management circuit as described in claim 7.
9. An electronic device, characterized in that, The electronic device includes the chip as described in claim 8.
Citation Information
Patent Citations
Control circuit, control method, selection circuit and power management integrated circuit
CN108388302A
Turn-off control circuit, battery management system and battery pack
CN116418328A