A ground switch control circuit and an electronic device

By introducing an MCU controller and a level matching circuit into the ground switch control circuit, automatic power off is realized, which solves the problem of manual control of the ground switch in the existing technology and improves the automation and safety of power management.

CN107844075BActive Publication Date: 2024-09-06GOERTEK ROBTICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201711024440.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-10-27
Publication Date
2024-09-06
Estimated Expiration
2037-10-27

AI Technical Summary

Technical Problem

The existing high-current ground switch requires manual control and cannot automatically cut off the power, posing safety risks.

Method used

A ground switch control circuit is designed, which includes a switching device, a drive circuit, an MCU controller and a level matching circuit. The MCU controller sends a control signal to the drive circuit to realize automatic power-off and connect the power ground and signal ground. Isolate the MCU controller and drive circuit before passing through to avoid potential differences.

Benefits of technology

It realizes the automatic control of the disconnection of the ground wire, improves the automation level and safety of power management, and avoids circuit damage caused by the potential difference between the MCU controller and the drive circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN107844075B
    Figure CN107844075B
Patent Text Reader

Abstract

The invention discloses a ground switch control circuit and an electronic device. The control circuit comprises: a switch device, a drive circuit, an MCU controller and a level matching circuit; the switch device is connected between the power ground of the input power supply and the signal ground of the control circuit; the drive circuit is connected to the MCU controller via the level matching circuit to control the closing and opening of the switch device; the ground terminal of the MCU controller is connected to the signal ground; the level matching circuit is connected between the output terminal of the MCU controller and the input terminal of the drive circuit to isolate the MCU controller and the drive circuit before the power ground and the signal ground are connected. Automatic power off can be achieved through the MCU controller, and the level matching circuit can solve the potential difference problem between the MCU controller and the drive circuit before the ground connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit design, and in particular to a ground switch control circuit and an electronic device. Background Art

[0002] A ground switch is a device that controls the conduction or disconnection of a ground wire to close or disconnect a circuit loop, thereby supplying power or cutting off power. In existing DC power supply circuit designs, a ground switch can be used to meet the circuit's greater current requirements.

[0003] However, if Figure 1 As shown, the current high-current grounding switch is usually controlled by a touch switch, which controls the driving circuit and drives the switch device connected in series to the grounding wire to turn on or off the main power supply, thereby supplying power to the load. However, the touch switch cannot achieve automatic control and cannot automatically shut down and power off. If you forget to cut off the power, it will cause safety hazards. Summary of the invention

[0004] In view of the problem that the ground switch in the prior art needs manual control and cannot automatically power off, a ground switch control circuit and an electronic device of the present invention are proposed to overcome the above problem or at least partially solve the above problem.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] According to one aspect of the present invention, a ground switch control circuit is provided, the control circuit comprising: a switch device, a drive circuit, an MCU controller and a level matching circuit;

[0007] The switch device is connected between the power ground of the input power supply and the signal ground of the control circuit;

[0008] The driving circuit is connected to the switching device and the MCU controller via the level matching circuit, and the ground terminal of the driving circuit is connected to the power ground;

[0009] The ground terminal of the MCU controller is connected to the signal ground;

[0010] The level matching circuit is connected between the output end of the MCU controller and the input end of the driving circuit, and is configured to isolate the MCU controller and the driving circuit before the power ground and the signal ground are connected.

[0011] Optionally, the switch device is an NMOS tube, a source of the NMOS tube is connected to the power ground, a drain is connected to the signal ground, and a gate is connected to the output end of the drive circuit.

[0012] Optionally, the driving circuit includes: a fourth resistor, a fifth resistor, a triode, a first diode, a first resistor, a seventh resistor and an eighth resistor;

[0013] One end of the fourth resistor is connected to the positive electrode of the input power supply, and the other end is connected to one end of the fifth resistor and the collector of the transistor, the other end of the fifth resistor is connected to the power ground and the emitter of the transistor, the positive electrode of the first diode is connected to the positive electrode of the driving power supply, the negative electrode of the first diode is connected to one end of the first resistor, the other end of the first resistor is connected to one end of the seventh resistor and one end of the eighth resistor, the other end of the seventh resistor is connected to the base of the transistor, and the other end of the eighth resistor is connected to the power ground; the connection end of the fourth resistor and the fifth resistor is the output end of the driving circuit; the connection end of the first resistor and the eighth resistor is the input end of the driving circuit.

[0014] Optionally, the level matching circuit includes: a third diode and a sixth diode; the anode of the third diode is connected to the input end of the drive circuit, the cathode is connected to the output end of the MCU controller, the cathode of the sixth diode is connected to the cathode of the third diode, and the anode of the sixth diode is connected to the signal ground.

[0015] Optionally, the control circuit further includes: a power conversion circuit; the power conversion circuit is connected to the input power supply and the drive circuit, and converts the input power supply into a drive power supply by stepping down the voltage, and provides the drive power supply to the drive circuit.

[0016] Optionally, the control circuit further includes a key circuit; the key circuit is connected to the drive circuit, and when a key is pressed, the key circuit outputs a control signal to control the drive circuit to drive the switch device to close.

[0017] Optionally, the button circuit includes: a second diode, a fourth diode, a third resistor and a button; one end of the button is connected to the power ground, and the other end is connected to one end of the third resistor and the cathode of the second diode, the other end of the third resistor is connected to the cathode of the fourth diode, the anode of the fourth diode is connected to the anode of the driving power supply, and the anode of the second diode is connected to the input end of the driving circuit.

[0018] Optionally, the button circuit also includes a ninth resistor and a fifth diode; one end of the ninth resistor is connected to the connection end between the button and the third resistor, the other end of the ninth resistor is connected to the cathode of the fifth diode and the input end of the MCU controller, and the anode of the fifth diode is connected to the signal ground.

[0019] Optionally, a power management circuit is further connected between the power supply terminal of the MCU controller and the positive pole of the input power supply, and the power management circuit is configured to stabilize the operating voltage of the MCU controller.

[0020] According to another aspect of the present invention, an electronic device is provided, wherein the electronic device comprises the ground switch control circuit as described above.

[0021] In summary, the beneficial effects of the present invention are:

[0022] By adding an MCU controller, a control signal is sent to the drive circuit, and the switch device is automatically controlled to disconnect, thereby achieving automatic power off. In addition, a level matching circuit is provided between the MCU controller and the drive circuit to isolate the MCU controller and the drive circuit before the ground wire is connected, so as to prevent the potential difference between the MCU controller and the drive circuit from burning the circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a schematic diagram of the working principle of the ground switch in the prior art;

[0024] Figure 2 A schematic diagram of the circuit composition structure of a ground switch control circuit provided by an embodiment of the present invention;

[0025] Figure 3 A schematic diagram of the circuit composition structure of a ground switch control circuit provided by another embodiment of the present invention;

[0026] Figure 4 for Figure 3 A schematic diagram of the working principle of the ground switch control circuit of the illustrated embodiment. DETAILED DESCRIPTION

[0027] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0028] The technical concept of the present invention is: to add an MCU controller in the ground switch control circuit to automatically control the disconnection of the switch device by sending a control signal to the drive circuit to achieve automatic power-off, and a level matching circuit is also provided between the MCU controller and the drive circuit to isolate the MCU controller and the drive circuit before the ground is connected to avoid the potential difference between the MCU controller and the drive circuit from burning the circuit.

[0029] Example 1

[0030] Figure 2 A circuit structure of the ground switch control circuit of the present invention is schematically shown.

[0031] like Figure 2 As shown, a ground switch control circuit includes: a switch device 110, a drive circuit 130, an MCU controller 140 and a level matching circuit 150.

[0032] The switch device 110 is connected between the power ground (GND_WIRE) of the input power supply and the signal ground (GND) of the control circuit, and closes or disconnects the power loop by connecting or disconnecting the power ground and the signal ground, thereby realizing power supply or power cut-off.

[0033] The driving circuit 130 is connected to the switch device 110 and the MCU controller 140 via the level matching circuit 150. The ground terminal of the driving circuit 130 is connected to the power ground (the ground terminal is not shown). The driving power supply 130 receives the control signal of the MCU controller to drive the switch device 110 to close or open, thereby realizing automatic control of the power supply of the circuit.

[0034] The ground terminal of the MCU controller 140 is connected to the signal ground. The power terminal of the MCU controller 140 is connected to the positive electrode of the input power supply to obtain the working voltage.

[0035] Usually, the MCU controller 140 needs to realize automatic control of the circuit power supply based on the state of the load and other logics. Therefore, the MCU controller 140 is set in the control circuit and uses the same signal ground as the load to perform back-end control. Figure 1-2 As shown in the figure, when the ground switch control circuit is used, before the ground is turned on, although no current is generated in the circuit, the load remains connected to the positive electrode of the power supply, playing a role similar to that of a pull-up resistor, causing the voltage value of the signal ground used by the load for return current to be close to the voltage value of the positive electrode of the power supply, that is, before the ground is turned on, V GND =V VBAT , then V GND -v GND_WIRE =V VBA Since the MCU controller 140 is also connected to the signal ground, its input and output ports will also have higher levels, resulting in a mismatch between the input level of the driving circuit 130. Therefore, the present invention adds a level matching circuit 150 to solve the potential difference between the driving circuit 130 and the MCU controller 140 when the ground line is disconnected.

[0036] The level matching circuit 150 is connected between the output terminal of the MCU controller 140 and the input terminal of the driving circuit 130, and is configured to isolate the MCU controller 140 and the driving circuit 130 before the power ground and the signal ground are connected. Thus, a large current is prevented from being generated between the output terminal of the MCU controller 140 and the input terminal of the driving circuit 130 due to the existence of the potential difference, thereby preventing the circuit from being burned.

[0037] Through the above control circuit, the added MCU controller 140 can be used to perform logic control according to actual needs and security policies, automatically control the connection and disconnection of the ground wire, and realize functions such as automatic shutdown and power-off of electrical equipment, thereby improving the level of automation and making power supply control more convenient and safe. In addition, the level matching circuit 150 is used to perform level matching, which solves the level mismatch problem caused by the potential difference between the drive circuit 130 and the MCU controller 140 when the ground wire is disconnected.

[0038] In the present embodiment 1, the ground switch control circuit further includes: a power conversion circuit 120. Figure 2 As shown, the power conversion circuit 120 is connected to the input power supply and the driving circuit 130 , and converts the input power supply (VBAT) into a driving power supply (VDD) by stepping down the voltage, and provides the driving circuit 130 .

[0039] The power conversion circuit 120 steps down the input power supply (VBAT) with a higher voltage value into a driving power supply (VDD) with a lower voltage value, so that the driving circuit 130 can adapt to the voltage value range of the output end of the MCU controller 140 when working normally, thereby responding to the control signal of the MCU controller 140, making the control of the MCU controller 140 stable and reliable.

[0040] Example 2

[0041] Figure 3 Another circuit composition structure of the ground switch control circuit of the present invention is schematically shown. Its basic structure is the same as that of the above-mentioned embodiment 1, including a switch device, a power conversion circuit, a drive circuit, an MCU controller and a level matching circuit. In addition, it also includes a key circuit and a power management circuit, and discloses the specific composition of some circuit parts.

[0042] like Figure 3 As shown, in some embodiments of the present invention, the switch device is an NMOS tube U2, the source of the NMOS tube U2 is connected to the power ground, the drain is connected to the signal ground, and the gate is connected to the output end of the driving circuit. When the driving circuit outputs a high level to the gate of the NMOS tube U2, the NMOS tube U2 is turned on, the connection level of the power ground and the signal ground becomes consistent, so that the power loop is closed to realize power supply; when the driving circuit outputs a low level to the gate of the NMOS tube U2, the NMOS tube U2 is turned on, the power ground and the signal ground are disconnected, so that the power loop is disconnected to realize power off.

[0043] In some embodiments of the present invention, the driving circuit is a triode digital switch, including: a fourth resistor R4, a fifth resistor R5, a triode Q5, a first diode D1, a first resistor R1, a seventh resistor R7 and an eighth resistor R8.

[0044] One end of the fourth resistor R4 is connected to the positive electrode of the input power supply, and the other end is connected to one end of the fifth resistor R5 and the collector of the transistor Q5. The other end of the fifth resistor R5 is connected to the power ground and the emitter of the transistor Q5. The positive electrode of the first diode D1 is connected to the positive electrode of the driving power supply. The negative electrode of the first diode D1 is connected to one end of the first resistor R1. The other end of the first resistor R1 is connected to one end of the seventh resistor R7 and one end of the eighth resistor R8. The other end of the seventh resistor R7 is connected to the base of the transistor Q5, and the other end of the eighth resistor R8 is connected to the power ground. The connection end of the fourth resistor R4 and the fifth resistor R5 is the output end of the driving circuit. The connection end of the first resistor R1 and the eighth resistor R8 is the input end of the driving circuit.

[0045] Figure 3 The operating principle of the drive circuit shown is as follows:

[0046] The connection end of the first resistor R1 and the eighth resistor R8 is the input end of the driving circuit. When there is a low level input at the input end, the base level of the transistor Q5 becomes low level through the seventh resistor R7, the transistor Q5 is disconnected, and the fifth resistor R5 is connected to the circuit to realize voltage division, so that the connection end of the fourth resistor R4 and the fifth resistor R5 outputs a high level, so that the NMOS tube U2 is closed, the power ground is connected to the signal ground, and the power supply is turned on; when there is no low level input at the connection end of the first resistor R1 and the eighth resistor R8, it becomes high level through the pull-up effect of the first resistor R1 and the first diode D1, then the base level of the transistor Q5 becomes high level, the transistor Q5 is turned on, so that the fifth resistor R5 is short-circuited, and the connection end of the fourth resistor R4 and the fifth resistor R5 outputs a low level, so that the NMOS tube U2 is disconnected, the power ground is disconnected from the signal ground, and the power is turned off and shut down.

[0047] certainly, Figure 3 What is shown is only a preferred embodiment of the driving circuit, and the solution of the present invention is not limited thereto. Other digital switch driving circuits can be used in the present invention.

[0048] In some embodiments of the present invention, Figure 3 As shown, the level matching circuit includes: a third diode D3 and a sixth diode D6. The anode of the third diode D3 is connected to the input end of the driving circuit, the cathode is connected to the output end of the MCU controller, the cathode of the sixth diode D6 is connected to the cathode of the third diode D3, and the anode of the sixth diode D6 is connected to the signal ground.

[0049] The working principle of the level matching circuit is as follows:

[0050] When the power ground is disconnected from the signal ground, the low-level input end of the driving circuit is connected to the positive electrode of the third diode D3, and the high-level output end of the MCU controller is connected to the negative electrode of the third diode D3, so that the current path is cut off through the unidirectional conduction of the third diode D3, and the circuit isolation is realized to prevent the generation of large current in the circuit, so as to achieve the function of matching the level protection circuit. Due to the capacitance effect, the sixth diode D6 filters out the negative pulse in the circuit at the moment when the power ground and the signal ground are closed, so as to avoid the pulse impact on the MCU controller. After the power ground is connected to the signal ground, the MCU controller outputs a low level by default, so that the third diode D3 is in the on state, the input end of the driving circuit is pulled down, the transistor Q5 is disconnected, and the NMOS tube U2 is closed to maintain the power supply state; if the automatic shutdown is to be realized through logical judgment, the MCU controller changes to output a high level or no output, so that the third diode D3 is cut off, the input end of the driving circuit becomes a high level, the transistor Q5 is turned on, and the NMOS tube U2 is disconnected, so as to realize automatic power off and shutdown.

[0051] Of course, the level matching circuit of the present invention is not limited thereto, and other circuits that can achieve circuit isolation can also be used as the level matching circuit of the present invention, which will not be described in detail here.

[0052] In some embodiments of the present invention, Figure 3 As shown, the power conversion circuit includes a low differential voltage linear voltage regulator chip U1 and its peripheral circuits. The low differential voltage linear voltage regulator chip U1 can select a suitable model according to the size of the input power supply and the driving power supply. In this embodiment, the low differential voltage linear voltage regulator chip U1 is WL2851E33, which outputs a 3.3V driving power supply, and its peripheral circuits include a sixth resistor R6, a second resistor R2, a first capacitor C1, and a second capacitor C2. In addition, the power conversion circuit of the present invention can also be implemented by other components or integrated circuits with voltage stabilization and voltage reduction functions, for example, by using a voltage regulator diode, which is well known to those skilled in the art and will not be repeated here.

[0053] In some embodiments of the present invention, Figure 3 As shown, the control circuit also includes a key circuit; the key circuit is connected to the drive circuit, and when the key is pressed, the key circuit outputs a control signal to control the drive circuit to drive the switch device to close. In this way, on the basis of the automatic shutdown of the MCU controller, this embodiment also retains the manual start mode of key startup.

[0054] In a preferred embodiment of the present invention, Figure 3As shown, the key circuit includes: a second diode D2, a fourth diode D4, a third resistor R3 and a key S1. One end of the key S1 is connected to the power ground, and the other end is connected to one end of the third resistor R3 and the cathode of the second diode D2. The other end of the third resistor R3 is connected to the cathode of the fourth diode D4. The anode of the fourth diode D4 is connected to the anode of the driving power supply, and the anode of the second diode D2 is connected to the input end of the driving circuit.

[0055] The working principle of the key circuit is as follows:

[0056] When the button S1 is pressed, the cathode of the second diode D2 is connected to the power ground, so that the second diode D2 is turned on to pull down the input end of the drive circuit, thereby disconnecting the transistor Q5 of the drive circuit and closing the switch device NMOS tube U2 to realize power supply and startup.

[0057] In a preferred embodiment of the present invention, the key circuit also includes a ninth resistor R9 and a fifth diode D5; one end of the ninth resistor R9 is connected to the connection end of the key S1 and the third resistor R3, the other end of the ninth resistor R9 is connected to the cathode of the fifth diode D5 and the input end of the MCU controller, and the anode of the fifth diode D5 is connected to the signal ground.

[0058] The key circuit is connected to the MCU controller through the ninth resistor R9 and the fifth diode D5, and can also realize the shutdown control of the key, and send a shutdown key signal to the MCU controller to realize manual shutdown when the MCU controller determines that shutdown is allowed, wherein the ninth resistor R9 plays the role of voltage division and current limiting, and the fifth diode D5 plays the role of filtering the negative pulse at the moment of power-on. The manual shutdown working principle of the key circuit is: when the circuit works normally, the key S1 is lifted, and the ninth resistor R9 is pulled high through the third resistor R3 and the fourth diode D4, thereby outputting a high level to the MCU controller; when the key S1 is pressed, the ninth resistor R9 is pulled down by the key S1 connected to the power supply, thereby outputting a low level to the MCU controller, and the MCU controller detects the low level input, obtains the manual shutdown signal, and further performs shutdown logic judgment. If the circuit is in a state where shutdown is allowed at this time, the MCU controller outputs a control signal to realize shutdown.

[0059] This embodiment uses the above-mentioned key circuit to realize that one key controls the power on and power off of the system at the same time. Of course, if the limit on the number of keys is not considered, two keys can also be set to realize the power on and power off functions respectively, which will not be repeated here.

[0060] Figure 4 Shows Figure 3 The working principle diagram of the embodiment shown is as follows: Figure 4As shown, the control circuit can control the closing and opening of the switch device through the MCU controller or the touch switch (ie the above-mentioned button), thereby controlling the switch of the circuit in a combined automatic and manual manner.

[0061] In some embodiments of the present invention, Figure 3 As shown, a power management circuit is also connected between the power supply end of the MCU controller and the positive pole of the input power supply. The power management circuit is configured to stabilize the operating voltage of the MCU controller. For example, the power management circuit may have circuit modules such as voltage reduction, voltage stabilization and filtering to provide a stable and reliable operating voltage for the MCU controller.

[0062] Example 3

[0063] The present invention further discloses an electronic device, which includes the ground switch control circuit as described in any of the above embodiments, so as to realize the power management function of the electronic device through the ground switch control circuit.

[0064] The above is only a specific embodiment of the present invention. Under the above teachings of the present invention, those skilled in the art can make other improvements or modifications on the basis of the above embodiments. Those skilled in the art should understand that the above specific description is only to better explain the purpose of the present invention, and the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A ground switch control circuit, characterized in that: The control circuit includes: a switch device, a drive circuit, an MCU controller and a level matching circuit; The switch device is connected between the power ground of the input power supply and the signal ground of the control circuit; The driving circuit is connected to the switching device and the MCU controller via the level matching circuit, and the ground terminal of the driving circuit is connected to the power ground; The ground terminal of the MCU controller is connected to the signal ground; The level matching circuit is connected between the output terminal of the MCU controller and the input terminal of the driving circuit, and is configured to isolate the MCU controller and the driving circuit before the power ground and the signal ground are connected; The switch device is an NMOS tube, the source of the NMOS tube is connected to the power ground, the drain is connected to the signal ground, and the gate is connected to the output end of the driving circuit; The driving circuit comprises: a fourth resistor, a fifth resistor, a triode, a first diode, a first resistor, a seventh resistor and an eighth resistor; One end of the fourth resistor is connected to the positive electrode of the input power supply, and the other end is connected to one end of the fifth resistor and the collector of the transistor, the other end of the fifth resistor is connected to the power ground and the emitter of the transistor, the positive electrode of the first diode is connected to the positive electrode of the driving power supply, the negative electrode of the first diode is connected to one end of the first resistor, the other end of the first resistor is connected to one end of the seventh resistor and one end of the eighth resistor, the other end of the seventh resistor is connected to the base of the transistor, and the other end of the eighth resistor is connected to the power ground; the connection end of the fourth resistor and the fifth resistor is the output end of the driving circuit; the connection end of the first resistor and the eighth resistor is the input end of the driving circuit; The level matching circuit comprises: a third diode and a sixth diode; the anode of the third diode is connected to the input end of the driving circuit, the cathode is connected to the output end of the MCU controller, the cathode of the sixth diode is connected to the cathode of the third diode, and the anode of the sixth diode is connected to the signal ground; The control circuit further includes: a power conversion circuit; the power conversion circuit is connected to the input power supply and the drive circuit, and converts the input power supply into a drive power supply by stepping down the voltage, and provides the drive circuit with the drive power supply; The control circuit further comprises a key circuit; the key circuit is connected to the drive circuit, and when the key is pressed, the key circuit outputs a control signal to control the drive circuit to drive the switch device to close; A power management circuit is also connected between the power supply end of the MCU controller and the positive pole of the input power supply, and the power management circuit is configured to stabilize the operating voltage of the MCU controller.

2. The ground switch control circuit according to claim 1, characterized in that: The key circuit includes: a second diode, a fourth diode, a third resistor and a key; one end of the key is connected to the power ground, and the other end is connected to one end of the third resistor and the cathode of the second diode, the other end of the third resistor is connected to the cathode of the fourth diode, the anode of the fourth diode is connected to the anode of the driving power supply, and the anode of the second diode is connected to the input end of the driving circuit.

3. The ground switch control circuit according to claim 2, characterized in that: The button circuit also includes a ninth resistor and a fifth diode; one end of the ninth resistor is connected to the connection end of the button and the third resistor, the other end of the ninth resistor is connected to the cathode of the fifth diode and the input end of the MCU controller, and the anode of the fifth diode is connected to the signal ground.

4. An electronic device, characterized in that: The electronic device comprises the ground switch control circuit as described in any one of claims 1-3.