A switching machine control circuit, method and electronic device

By designing the power-on/off control circuit, the problem of no data loss and zero power consumption when electronic products are turned off is solved. Data preservation and zero power consumption are achieved during normal power-on and power-off processes, thus improving the performance of electronic devices.

CN114362733BActive Publication Date: 2025-12-16ZHEJIANG DAHUA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111623782.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2025-12-16
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

In existing technologies, electronic products cannot simultaneously achieve zero data loss and zero power consumption when powered off, leading to problems such as program malfunctions and data loss.

Method used

The system employs a power-on/off control circuit, which includes a power-on/off trigger circuit, a power-on/off circuit, and a power-off control circuit. By receiving a trigger signal, it controls the power supply to achieve normal power-on and power-off of electronic devices, ensuring that the power is disconnected after data is saved, thus achieving a zero-power consumption state.

Benefits of technology

This technology enables electronic devices to operate with zero power consumption and no data loss after shutdown, thereby reducing power consumption and improving device performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114362733B_ABST
    Figure CN114362733B_ABST
Patent Text Reader

Abstract

The application discloses a kind of switch control circuit, method and electronic equipment, switch control circuit includes switch trigger circuit, power on-off circuit and on-off control circuit, switch trigger circuit responds to trigger signal, based on external voltage, control power on-off circuit conduction, to open the passway between external power supply end and power supply unit, control electronic equipment start, or send first level to control unit, so that control unit saves data and then outputs second level, on-off control circuit based on second level, control power on-off circuit disconnect, to open the passway between external power supply end and power supply unit, control electronic equipment shutdown.Switch control circuit can control electronic equipment start, or send first level to control unit, and after control unit saves data, receive second level returned by control unit, control electronic equipment shutdown, so that electronic equipment can realize no loss of data after shutdown, and zero power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of electronic technology, in particular to a kind of switch control circuit, method and electronic equipment. BACKGROUND

[0002] Electronic product, from the energy-saving point of view, especially in some low-power demand occasions, hope that it can achieve the ideal state of zero power consumption in standby state, hope that data can be effectively saved when shutting down, ensure normal boot operation next time, no data loss.

[0003] In the current situation, to ensure that data is not lost before power failure, the main control system of electronic product saves all system data after receiving the shutdown command, and then enters standby state, but the standby state is not zero power consumption state, and a module of the system is always in interrupt wake-up mode, waiting for the boot command trigger, and then boot the system again, which will have a certain power consumption.

[0004] And another situation, directly power off to make electronic system in shutdown state, at this time electronic product is zero power consumption, but before this shutdown mode occurs, the electronic system is in working state, sudden power failure will lead to program exception and data loss, which may cause abnormal conditions such as electronic product unable to start next time, program unable to run and data loss.

[0005] In summary, when electronic product is shut down, how to ensure that there is no data loss and zero power consumption is a problem to be solved by those skilled in the art. SUMMARY

[0006] The present application provides a kind of switch control circuit, method and electronic equipment, to solve the problem of existing electronic product shutdown, how to ensure that there is no data loss and zero power consumption.

[0007] In a first aspect, the present application provides a kind of switch control circuit, applied to electronic equipment, the electronic equipment further includes power supply unit and control unit, the circuit includes: switch trigger circuit, power supply on-off circuit and on-off control circuit, wherein,

[0008] The switch trigger circuit is used to control the power supply on-off circuit to be turned on based on the external voltage output by the external power supply terminal after receiving the trigger signal, or send the first level signal to the control unit, so that the control unit saves data and then outputs the second level signal;

[0009] The on-off control circuit is used to control the power supply on-off circuit to be disconnected after receiving the second level signal.

[0010] The power on-off circuit is configured to, in the on state, turn on a path between the external power supply end and the power supply unit to control the electronic device to start up, and in the off state, turn off the path between the external power supply end and the power supply unit to control the electronic device to shut down.

[0011] In a possible implementation, the switch-on trigger circuit includes a trigger module, a first control module, and a second control module, wherein,

[0012] The trigger module is configured to, under control of the trigger signal, control a first end of the first control module to be grounded and control a first end of the second control module to be grounded.

[0013] The first control module is configured to, after the first end of the first control module is grounded, control the power on-off circuit to be turned on based on the external voltage.

[0014] The second control module is configured to, after the first end of the second control module is grounded, output the first level signal.

[0015] In a possible implementation, the trigger module includes a key.

[0016] A first end of the key is connected to a ground end, a second end of the key is connected to the first end of the first control module and the first end of the second control module respectively, and a control end of the key is configured to receive the trigger signal.

[0017] In a possible implementation, the first control module includes a first resistor, a second resistor, and a diode.

[0018] A first end of the first resistor is connected to the external power supply end and a first end of the second resistor respectively, and a second end of the first resistor is connected to a cathode of the diode, the second end of the key, and the first end of the second control module respectively.

[0019] A second end of the second resistor is connected to an anode of the diode, the power on-off circuit, and the on-off control circuit respectively.

[0020] In a possible implementation, the second control module includes a third resistor and a first transistor.

[0021] A first end of the third resistor is connected to a voltage end, and a second end of the third resistor is connected to a first end of the first transistor and the control unit respectively.

[0022] A second end of the first transistor is grounded, and a control end of the first transistor is connected to the second end of the key respectively.

[0023] In a possible implementation, the power on-off circuit comprises a second transistor;

[0024] The first end of the second transistor is connected with the external power supply end, the second end of the second transistor is connected with the power supply unit, and the control end of the second transistor is connected with the second end of the second resistor and the on-off control circuit.

[0025] In a possible implementation, the on-off control circuit comprises a third transistor and a fourth resistor;

[0026] The first end of the third transistor is connected with the control end of the second transistor, the second end of the third transistor is grounded, and the control end of the third transistor is connected with the first end of the fourth resistor;

[0027] The second end of the fourth resistor is connected with the control unit.

[0028] In a possible implementation, the first transistor and the third transistor are NMOS transistors, and the second transistor is a PMOS transistor.

[0029] In a second aspect, an embodiment of the present application provides an electronic device, comprising a power supply unit, a control unit and the switch-on / off control circuit according to any one of the first aspect.

[0030] In a third aspect, an embodiment of the present application provides a switch-on / off control method, applied to the electronic device according to the second aspect, and the method comprises the following steps.

[0031] After receiving a trigger signal through the switch-on / off control circuit, a path between the external power supply end and the power supply unit is turned on to control the electronic device to start up, or a first level signal is input to the control unit;

[0032] After detecting the first level signal through the control unit, data is saved, and a second level signal is output to the switch-on / off control circuit;

[0033] After receiving the second level signal through the switch-on / off control circuit, the path between the external power supply end and the power supply unit is turned off to control the electronic device to shut down.

[0034] The present application has the following advantages:

[0035] The switching control circuit, method and electronic device provided by the embodiment of the present application, wherein the switching control circuit comprises a switching trigger circuit, a power on-off circuit and an on-off control circuit, the switching trigger circuit controls the power on-off circuit to be turned on based on an external voltage in response to a trigger signal, so as to turn on a path between an external power supply terminal and a power supply unit, control the electronic device to be turned on, or send a first level signal to a control unit, so as to make the control unit output a second level after saving data, the on-off control circuit controls the power on-off circuit to be turned off based on the second level, so as to turn off the path between the external power supply terminal and the power supply unit, and control the electronic device to be turned off. Since the switching control circuit can control the electronic device to be turned on directly according to the received trigger signal, or send the first level signal to the control unit, and receive the second level signal returned by the control unit after the control unit saves data, and control the electronic device to be turned off, the electronic device can be turned off without data loss and with zero power consumption, so as to reduce the power consumption of the electronic device and improve the performance of the electronic device. BRIEF DESCRIPTION OF DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0037] Figure 1 A structural schematic diagram of a switching control circuit is provided for the embodiment of the present application.

[0038] Figure 2 A structural schematic diagram of another switching control circuit is provided for the embodiment of the present application.

[0039] Figure 3 A specific structural schematic diagram of a switching control circuit is provided for the embodiment of the present application.

[0040] Figure 4 A flowchart of a switching control method is provided for the embodiment of the present application.

[0041] Figure 5 A flowchart of a sub-system processing switching is provided for the embodiment of the present application.

[0042] Figure 6 A flowchart of a master control system processing switching is provided for the embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the objects, technical solutions and advantages of the present application clearer, the following further describes the present application with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall into the scope of protection of the present application.

[0044] Currently, there are two ways to shut down electronic products. One way is to send a shutdown instruction to the main control system (main control unit) of the electronic product. The main control system saves data in the system after receiving the shutdown instruction, and then enters a standby state. At this time, a clock in a certain module in the system is in an interrupt wake-up mode, waiting for a start command to trigger and perform start operation. Another way is to directly power off the electronic product. After power off, the electronic product is in a shutdown state, and at this time, the electronic product is in zero power consumption. However, since the electronic product is in a working state before power off, sudden power off will cause program exception and data loss.

[0045] It should be noted that the standby state in the embodiments of the present application is a state of the electronic device after shutdown.

[0046] In summary, after the electronic product is shut down, how to ensure no data loss and zero power consumption is a problem to be solved by those skilled in the art.

[0047] Based on the above technical problem, the embodiments of the present application provide a start and shutdown control circuit applied to an electronic device, such as Figure 1 As shown in the figure, the electronic device includes a power supply unit 10, a control unit 20 and a start and shutdown control circuit 30, wherein:

[0048] The start and shutdown control circuit 30 includes a start and shutdown trigger circuit 301, a power supply on-off circuit 302 and an on-off control circuit 303.

[0049] The start and shutdown trigger circuit 301 is configured to, after receiving a trigger signal, control the power supply on-off circuit 302 to be turned on based on an external voltage output by an external power supply end VIN, or send a first level signal to the control unit 20, so that the control unit 20 saves data and then outputs a second level signal.

[0050] The on-off control circuit 303 is configured to, after receiving the second level signal, control the power supply on-off circuit 302 to be disconnected.

[0051] The power supply on-off circuit 302 is configured to, in a turned-on state, turn on a path between the external power supply end VIN and the power supply unit 10 to control the electronic device to start, and in a disconnected state, disconnect the path between the external power supply end VIN and the power supply unit 10 to control the electronic device to shut down.

[0052] The switch control circuit in the embodiment of the application comprises a switch trigger circuit, a power supply on-off circuit and an on-off control circuit. The switch trigger circuit controls the power supply on-off circuit to be turned on based on an external voltage in response to a trigger signal, so as to turn on a path between an external power supply terminal and a power supply unit, control the electronic device to be powered on, or send a first level signal to the control unit, so that the control unit outputs a second level signal after saving data. The on-off control circuit controls the power supply on-off circuit to be turned off based on the second level signal, so as to turn off the path between the external power supply terminal and the power supply unit, and control the electronic device to be powered off. Since the switch control circuit can control the electronic device to be powered on directly according to the received trigger signal, or send the first level signal to the control unit, and receive the second level signal returned by the control unit after the control unit saves data, and control the electronic device to be powered off, the electronic device can be powered off without data loss and with zero power consumption, thereby reducing the power consumption of the electronic device and improving the performance of the electronic device.

[0053] From Figure 1 It can be seen that the first end of the switch trigger circuit 301 is connected with the external power supply terminal VIN and the first end of the power supply on-off circuit 302 respectively, the second end of the switch trigger circuit 301 is connected with the control end of the power supply on-off circuit 302 and the first end of the on-off control circuit 303 respectively, the third end of the switch trigger circuit 301 is connected with the first end of the control unit 20, the second end of the power supply on-off circuit 302 is connected with the power supply unit, and the control end of the on-off control circuit 303 is connected with the second end of the control unit 20.

[0054] After receiving the trigger signal, if the electronic device is currently in a powered-off state, the switch trigger circuit 301 controls the power supply on-off circuit 302 to be turned on based on the external voltage through the control end of the power supply on-off circuit 302; if the electronic device is in a powered-on state, the switch trigger circuit 301 sends the first level signal to the control unit 20 through the first end of the control unit 20 based on the external voltage, the control unit 20 saves data after receiving the first level signal through the second end of the control unit 20, and then outputs the second level signal through the second end of the control unit 20, and the on-off control circuit 303 controls the power supply on-off circuit 302 to be turned off through the control end after receiving the second level signal.

[0055] In a specific implementation, as Figure 1As shown, the control unit 20 can include a main control unit 201 and a sub control unit 202, the main control unit 201 and the sub control unit 202 are connected through a communication link, and the power supply unit 10 can supply power to the main control unit 201 and the sub control unit 202 respectively. After the sub control unit 202 receives the second level signal, the sub control unit 202 sends a shutdown instruction to the main control unit 201 through the communication link. After the main control unit 201 receives the shutdown instruction, the main control unit 201 performs data saving and shutdown procedures, and feeds back to the sub control unit 202 that the shutdown instruction has been received. After the main control unit 201 completes data saving, the main control unit 201 sends a shutdown completion instruction to the sub control unit 202. After the sub control unit 202 receives the shutdown completion instruction, the sub control unit 202 performs data saving, closes the running program, stops the read-write operation, and then outputs the second level signal.

[0056] Wherein, the main control unit 201 can be a master control system in the electronic device, the sub control unit 202 can be a subsystem in the electronic device, the first end of the control unit 20 can be a GPIO2 pin of the subsystem, and the second end of the control unit 20 can be a GPIO1 pin of the subsystem.

[0057] It should be noted that the main control unit 201 in the embodiment of the application can be equivalent to the master control system, and the sub control unit 202 can be equivalent to the subsystem.

[0058] In an embodiment, as shown in Figure 2 The switch-on and switch-off trigger circuit 301 can include a trigger module 3011, a first control module 3012 and a second control module 3013, wherein:

[0059] The first end of the first control module 3012 serves as the first end of the switch-on and switch-off trigger circuit 301, the second end of the first control module 3012 serves as the second end of the switch-on and switch-off trigger circuit 301, the third end of the first control module 3012 is connected with the output end of the trigger module 3011 and the first end of the second control module 3013 respectively, and the second end of the second control module 3013 serves as the third end of the switch-on and switch-off trigger circuit 301.

[0060] The trigger module 3011 is configured to control the first end of the first control module 3012 to be grounded and control the first end of the second control module 3013 to be grounded under the control of a trigger signal.

[0061] The first control module 3012 is configured to control the power-on and power-off circuit 302 to be turned on based on an external voltage after the first end of the first control module 3012 is grounded.

[0062] The second control module 3013 is configured to output a first level signal after the first end of the second control module 3013 is grounded.

[0063] As shown in Figure 3As shown, the triggering module 3011 can include a key K;

[0064] The first end of the key K is connected with the ground end, the second end of the key K is connected with the first end of the first control module 3012 and the first end of the second control module 3013 respectively, and the control end of the key K is used for receiving a triggering signal.

[0065] The triggering signal herein is sent by a user, for example, the user presses the key K once, that is, the key receives the triggering signal, the first end and the second end of the key K are turned on, and when the user releases the key K, the first end and the second end of the key K are turned off.

[0066] The first control module 3012 can include a first resistor R1, a second resistor R2 and a diode D;

[0067] The first end of the first resistor R1 is connected with the external power supply end VIN and the first end of the second resistor R2 respectively, and the second end of the first resistor R1 is connected with the cathode of the diode D, the second end of the key K and the first end of the second control module 3013 respectively;

[0068] The second end of the second resistor R2 is connected with the anode of the diode D, the power supply on-off circuit 302 and the on-off control circuit 303 respectively.

[0069] The second control module 3013 can include a third resistor R3 and a first transistor Q1;

[0070] The first end of the third resistor R3 is connected with the voltage end V, and the second end of the third resistor R is connected with the first end of the first transistor Q1 and the control unit 20 respectively;

[0071] The second end of the first transistor Q1 is grounded, and the control end of the first transistor Q1 is connected with the second end of the key K.

[0072] The power supply on-off circuit 302 can include a second transistor Q2;

[0073] The first end of the second transistor Q2 is connected with the external power supply end VIN, the second end of the second transistor Q2 is connected with the power supply unit 10, and the control end of the second transistor Q2 is connected with the second end of the second resistor R2 and the on-off control circuit 303.

[0074] The on-off control circuit 303 can include a third transistor Q3 and a fourth resistor R4;

[0075] The first end of the third transistor Q3 is connected with the control end of the second transistor Q2, the second end of the third transistor Q3 is grounded, and the control end of the third transistor Q3 is connected with the first end of the fourth resistor R4;

[0076] The second end of the fourth resistor R4 is connected with the control unit 20.

[0077] Figure 3 J in the fourth resistor R4 is used for connecting an external power supply and converting the external power supply into an external voltage.

[0078] In a possible embodiment, the first transistor Q1 and the third transistor Q3 can be NMOS transistors, and the second transistor Q2 can be a PMOS transistor. The first level signal can be a high level, and the second level signal can be a low level.

[0079] The application will be described in detail below with reference to the accompanying drawings. Figure 3 The application will be described in detail below with reference to the accompanying drawings.

[0080] The booting process is as follows:

[0081] When the key K is not pressed, the cathode and the anode of the diode D are both at the level VIN, and the diode D is not conductive; the GS of the P-channel MOS Q2 is both at VIN, so Vgs=0V, Q2 is not conductive, and the rear-end power supply system module cannot work, that is, the power supply unit 10 cannot work, and the whole system does not work.

[0082] When the key K is pressed, the cathode of the diode D is pulled to 0V, and the anode of the diode D is a diode forward voltage drop VF (the VF value is generally very small, about 0.7V or less); at this time, the gate voltage G of the P-channel MOS Q2 is VF, so the GS voltage of the Q2D is VIN-0.7V, and since VIN is much larger than 0.7V, it can be ignored, so Vgs=-(VIN-0.7)≈-VIN voltage value; according to the characteristics of the P-channel MOS, the P-channel MOS Q2 is conductive, the rear-end power supply system module starts to work, that is, the power supply unit 10 starts to work, and supplies power to the sub control unit 202 (subsystem) and the main control unit 203 (main control system), and the electronic device is booted;

[0083] When the subsystem is normally powered, the GPIO1 pin outputs a high level immediately, the N-channel MOS Q3 is opened, the gate G of the P-channel MOS Q2 is always kept at a low level, and Q2 is kept in a conductive state.

[0084] At this time, the key K is not in the pressed state, the gate G of the N-channel MOS Q1 is pulled high, the MOS is conductive, and the D pole is pulled low; the GPIO2 input pin of the subsystem detects that it is at a low level, the GPIO1 output is kept at a high level, and the system is kept in a power supply working state.

[0085] The shutdown process is as follows:

[0086] Press the button K, the gate voltage of N-channel MOS tube Q1 is 0V, at this time Vgs of MOS tube Q1 is 0V, Q1 is not conductive, the D terminal of Q1 is high level, the GPIO2 pin is pulled up to the voltage of voltage terminal V output, such as 3.3V, the subsystem detects that GPIO2 is high level;

[0087] After the subsystem detects that GPIO2 is high level, the shutdown instruction is sent to the main control system through the communication link, the main control system feeds back that the subsystem has received the shutdown instruction and is closing the main system, the main control system carries out data saving and closing program, and the subsystem waits for the shutdown completion instruction of the main control system;

[0088] After the subsystem receives the shutdown completion instruction fed back by the main control system, the subsystem carries out data saving, closes the running program, stops the read-write operation, and finally outputs low level to GPIO1, Vgs of Q3 is 0V, and Q3 is not conductive, at this time the button K is released, the gate of Q2 is pulled up to VIN voltage, Vgs of Q2 is 0V, and Q2 is not conductive, the power supply system module cannot supply power, and the system is completely powered off and is in zero-power standby state.

[0089] In the embodiment of the application, the normal startup and normal shutdown can be ensured through the startup and shutdown circuit, and when the system is shutdown, the system program and data are saved through the communication link between the subsystem part and the main control system, so that the system can normally work next time after power-on, and zero-power standby can be realized after shutdown.

[0090] Based on the same inventive concept, the embodiment of the application also provides a startup and shutdown control method applied to any one of the above electronic devices, as shown in the figure, the method comprises the following steps: Figure 4 As shown in the figure, the method comprises the following steps:

[0091] S401, after receiving a trigger signal through the startup and shutdown control circuit, a path between an external power supply end and the power supply unit is controlled to be conductive, so as to control the electronic device to start up, or a first level signal is input to the control unit;

[0092] S402, after detecting the first level signal through the control unit, data is saved, and a second level signal is output to the startup and shutdown control circuit;

[0093] S403, after receiving the second level signal through the startup and shutdown control circuit, the path between the external power supply end and the power supply unit is controlled to be disconnected, so as to control the electronic device to shut down.

[0094] As shown in the figure, the method comprises the following steps: Figure 5 As shown in the figure, the method comprises the following steps:

[0095] S501, the subsystem detects that GPIO1 outputs high level;

[0096] S502, the subsystem detects the level of the GPIO2 output;

[0097] S503, the subsystem judges whether the GPIO2 outputs low level, if yes, S509 is executed, otherwise, S504 is executed;

[0098] S504, the subsystem sends a shutdown instruction to the master system;

[0099] S505, the subsystem judges whether the shutdown instruction is received, if yes, S506 is executed, otherwise, S507 is executed;

[0100] S506, the subsystem saves data and closes programs;

[0101] S507, the subsystem judges whether timeout, if yes, S508 is executed, otherwise, S504 is executed;

[0102] S508, the subsystem controls the GPIO1 to output low level;

[0103] S509, the subsystem keeps the GPIO1 outputting high level, and S501 is executed.

[0104] As shown in FIG. 1, a flowchart of a process of a master system to handle the power on / off is provided, which comprises the following steps: Figure 6

[0105] S601, the master system receives data or instructions sent by the subsystem;

[0106] S602, the master system judges whether the received instruction is a shutdown instruction, if yes, S603 is executed, otherwise, S601 is executed;

[0107] S603, the master system saves data and closes programs;

[0108] S604, the master system sends a shutdown completion instruction to the subsystem.

[0109] Based on the same inventive concept, the embodiment of the present application further provides an electronic device, which comprises a power supply unit, a control unit and the power on / off control circuit as described above.

[0110] ​The switching control circuit, method and electronic device provided by the embodiment of the present application, wherein the switching control circuit comprises a switching trigger circuit, a power on-off circuit and an on-off control circuit; the switching trigger circuit responds to a trigger signal, controls the power on-off circuit to be turned on based on an external voltage, turns on a path between an external power supply terminal and a power supply unit, controls the electronic device to be turned on, or sends a first level signal to a control unit, so that the control unit outputs a second level signal after saving data; the on-off control circuit controls the power on-off circuit to be turned off based on the second level signal, turns off the path between the external power supply terminal and the power supply unit, and controls the electronic device to be turned off. Since the switching control circuit can control the electronic device to be turned on according to the received trigger signal, send the first level signal to the control unit, receive the second level signal returned by the control unit after the control unit saves the data, and control the electronic device to be turned off, the electronic device can realize no data loss and zero power consumption after being turned off, thereby reducing the power consumption of the electronic device and improving the performance of the electronic device.

[0111] Those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application belong to the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these modifications and variations.

Claims

1. A power on / off control circuit, characterized in that, This circuit is applied to an electronic device, which further includes a power supply unit and a control unit. The circuit comprises: a trigger module, a first control module, a second control module, a power on / off circuit, and an on / off control circuit, wherein... The triggering module is used to, upon receiving a trigger signal, control the first terminal of the first control module to be grounded and the first terminal of the second control module to be grounded under the control of the trigger signal. The first control module is used to control the power supply circuit to be turned on based on the external voltage output by the external power supply terminal after the electronic device is in the off state and the first terminal of the first control module is grounded. The second control module is used to send a first level signal to the control unit after the electronic device is powered on and the first terminal of the second control module is grounded, so that the control unit saves the data and outputs a second level signal. The on / off control circuit is used to control the power supply on / off circuit to disconnect after receiving the second level signal; The power on / off circuit is used to connect the external power supply terminal and the power supply unit in the on state to control the electronic device to turn on, and to disconnect the external power supply terminal and the power supply unit in the off state to control the electronic device to turn off. The first control module includes a first resistor, a second resistor, and a diode; The first end of the first resistor is connected to the external power supply terminal and the first end of the second resistor, respectively; the second end of the first resistor is connected to the cathode of the diode, the first end of the second control module, and the trigger module, respectively. The second end of the second resistor is connected to the anode of the diode, the power supply switching circuit, and the switching control circuit, respectively. The control unit includes a main control unit and a sub-control unit; After receiving the first level signal, the sub-control unit sends a shutdown command to the main control unit; After receiving the shutdown command, the main control unit saves the data. After the data saving is complete, it sends a shutdown completion command to the sub-control unit. After receiving the shutdown completion command, the sub-control unit saves the data and outputs the second level signal.

2. The circuit as described in claim 1, characterized in that, The triggering module includes a button; The first end of the button is connected to the ground terminal, and the second end of the button is connected to the first end of the first control module and the first end of the second control module respectively. The control terminal of the button is used to receive the trigger signal.

3. The circuit as described in claim 2, characterized in that, The second control module includes a third resistor and a first transistor; The first end of the third resistor is connected to the voltage terminal, and the second end of the third resistor is connected to the first end of the first transistor and the control unit, respectively. The second terminal of the first transistor is grounded, and the control terminal of the first transistor is connected to the second terminal of the button.

4. The circuit as described in claim 3, characterized in that, The power supply switching circuit includes a second transistor; The first terminal of the second transistor is connected to the external power supply terminal, the second terminal of the second transistor is connected to the power supply unit, and the control terminal of the second transistor is connected to the second terminal of the second resistor and the on / off control circuit.

5. The circuit as described in claim 4, characterized in that, The on / off control circuit includes a third transistor and a fourth resistor; The first terminal of the third transistor is connected to the control terminal of the second transistor, the second terminal of the third transistor is grounded, and the control terminal of the third transistor is connected to the first terminal of the fourth resistor. The second end of the fourth resistor is connected to the control unit.

6. The circuit as described in claim 5, characterized in that, The first transistor and the third transistor are NMOS transistors, and the second transistor is a PMOS transistor.

7. An electronic device, characterized in that, It includes a power supply unit, a control unit, and a power on / off control circuit as described in any one of claims 1-6.

8. A power on / off control method, characterized in that, Applied to the electronic device of claim 7, the method comprises: After receiving the trigger signal through the trigger module in the power-on / off control circuit, the first terminal of the first control module in the power-on / off control circuit is grounded, and the second terminal of the second control module in the power-on / off control circuit is grounded. When the electronic device is in the off state and the first terminal of the first control module is grounded, the first control module controls the path between the external power supply terminal and the power supply unit to be connected based on the external voltage output by the external power supply terminal, so as to control the electronic device to be turned on. When the electronic device is in the on state and the second terminal of the second control module is grounded, the second control module inputs a first level signal to the control unit. After the control unit detects the first level signal, it saves the data and outputs the second level signal to the on / off control circuit in the power-on / off control circuit. After receiving the second level signal through the on / off control circuit, the circuit controls the connection between the external power supply terminal and the power supply unit to be disconnected, thereby controlling the electronic device to shut down. The control unit includes a main control unit and a sub-control unit; The step of detecting the first level signal through the control unit, saving the data, and outputting a second level signal to the power-on / off control circuit includes: After receiving the first level signal, the sub-control unit sends a shutdown command to the main control unit. After receiving the shutdown command, the main control unit saves the data and then sends a shutdown completion command to the sub-control unit. After receiving the shutdown completion command, the sub-control unit saves the data and outputs the second level signal.

Citation Information

Patent Citations

  • Equipment startup and shutdown control circuit

    CN113517884A