Soft switching control circuit, soft switching control method and terminal equipment

By designing a soft switch control circuit including a key module, a switch module and a logic module, the problem of high and inapplicable soft shutdown in the prior art is solved, and the effect of soft shutdown, reducing costs and adapting to various processing chips is achieved.

CN119865155APending Publication Date: 2025-04-22BEIJING ZHIQI TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411919901.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The prior art is difficult to achieve soft shutdown without damaging the memory chip, and is costly and not suitable for various processing chips.

Method used

A soft switch control circuit is designed, including a key module, a first switch module, a second switch module and a logic module. Through the connection and control of these modules, power-up and power-off of the power module is realized, avoiding the use of a proprietary PMU chip.

Benefits of technology

It realizes soft shutdown, reduces costs, and is adapted to various types of processing chips, avoiding data loss and memory chip damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865155A_ABST
    Figure CN119865155A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a soft switching control circuit, a soft switching control method and terminal equipment, the soft switching control circuit comprises a key module, a first switch module, a second switch module and a logic module, the key module is connected with the first switch module, an input end of the first switch module is connected with a control module, and an output end of the second switch module is connected with the logic module. The output end of the first switch module and the second switch module are respectively connected with the input end of the logic module, the output end of the logic module is connected with the power supply module, and the power supply module is used for supplying power to the control module; the control modules are different types of control chips, the soft switching control circuit is used for controlling the power-on or power-off of the power supply module, and through the soft switching control circuit provided by the invention, soft shutdown is realized, the use of a special chip is avoided, the cost is reduced, and the soft switching control circuit can adapt to various different types of processing chips.
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, and in particular to a soft switch control circuit, a control method and a terminal device. Background Art

[0002] Devices with storage often cannot be powered off directly or shut down by pressing a button, which will lead to data loss, and even damage the storage chip, causing economic losses. The correct shutdown logic is that the device needs to write data to the storage chip when the button is pressed to shut down. This requires that after the button is pressed, the device can still maintain normal power supply until the main chip completes the data write operation and shuts down most of the running processes, and then controls the power chip to power off. Different from the direct power off and shutdown of the hardware, this process is usually called soft shutdown. At present, in order to achieve soft shutdown, it is necessary to use a PMU chip with soft shutdown function, but this chip is relatively expensive and cannot be widely used in various CPUs or MCUs. Therefore, how to achieve soft shutdown at a low cost and adapt to various different processing chips is an urgent problem to be solved. Summary of the invention

[0003] The purpose of some embodiments of the present application is to provide a soft switch control circuit and a control method. Through the technical solutions of the embodiments of the present application, the soft switch control circuit in the present application includes: a key module, a first switch module, a second switch module and a logic module, wherein: the key module is connected to the first switch module, the input end of the first switch module is connected to the control module, the output end of the first switch module and the second switch module are respectively connected to the input end of the logic module, the output end of the logic module is connected to the power supply module, the first switch module is connected to the control module through a resistor and a diode, and the power supply module is used to supply power to the control module; the control module is a control chip of different types, and the soft switch control circuit is used to control the power supply module to power on or off. Through the soft switch control circuit provided by the present application, soft shutdown is achieved, avoiding the use of proprietary chips, reducing costs, and being adaptable to various types of processing chips.

[0004] In a first aspect, some embodiments of the present application provide a soft switch control circuit, the soft switch control circuit comprising: a key module, a first switch module, a second switch module and a logic module, wherein:

[0005] The button module is connected to the first switch module, the input end of the first switch module is connected to the control module, the output end of the first switch module and the second switch module are respectively connected to the input end of the logic module, the output end of the logic module is connected to the power module, the first switch module is connected to the control module through a resistor and a diode, and the power module is used to supply power to the control module; the control module is a control chip of different types, and the soft switch control circuit is used to control the power supply module to power on or off.

[0006] The control module in some embodiments of the present application can be a single-chip microcomputer of different types, which realizes soft shutdown, avoids the use of proprietary chips, reduces costs, and can adapt to various types of processing chips. Through the soft switch control circuit, soft shutdown is realized, which avoids the use of proprietary chips, reduces costs, and can adapt to various types of processing chips.

[0007] Optionally, one end of the button module is connected to the third pin of the first switch module, and the second pin of the first switch module is connected to the second pin of the logic module.

[0008] Some embodiments of the present application can control the power supply chip to be powered on or off by connecting a button to a first switch module, which is then connected to a logic module.

[0009] Optionally, the first pin of the second switch module is connected to a 3.3V voltage, and the third pin of the second switch module is connected to the second pin of the logic module and to the second pin of the first switch module.

[0010] In some embodiments of the present application, the second switch module is connected to the logic module, and when the second switch module is turned on, the terminal device can work normally.

[0011] Optionally, the third pin of the first switch module is connected to the first end of the seventy-fourth diode through the seventy-sixth resistor, and the second end of the seventy-fourth diode is connected to the control pin of the control module.

[0012] In some embodiments of the present application, the third pin of the first switch module is connected to the control pin of the control module through the seventy-sixth resistor to achieve system shutdown on the terminal device.

[0013] Optionally, the sixth pin of the logic module is connected to a power module.

[0014] In some embodiments of the present application, the sixth pin of the logic module is connected to the power module to control the power on and off of the power chip.

[0015] Optionally, the first switch module is a PNP transistor, and the second switch module is an NPN transistor.

[0016] In some embodiments of the present application, the PNP transistor needs to have good shutdown properties to ensure that the key will not shut down hard when the power is turned on, and the NPN transistor needs to have good conductivity to ensure that the KEY signal is at a low level when PWR_CTRL is pulled low.

[0017] Optionally, the logic module is a bistable logic chip.

[0018] The logic module in some embodiments of the present application is a bistable logic chip, which controls the power on and off of the power module by flipping the output signal.

[0019] Optionally, the seventy-fourth diode is a Schottky diode.

[0020] The diode in some embodiments of the present application is a Schottky diode, the lower the conduction voltage.

[0021] In a second aspect, some embodiments of the present application provide a soft switch control method, which is applied to any soft switch control circuit described in the first aspect, and the method includes:

[0022] During the boot process, the button module is pressed, the first switch module is turned on, so that the logic module outputs a high level to supply power to the power module;

[0023] During normal operation, the first switch module is turned off, and when the button module is pressed, the second switch module is turned on;

[0024] During the shutdown process, the button module is pressed for a preset time, the first switch module is turned off, and when the control module detects that the duration of the low level is the preset time, the data is stored in the storage module, and the second switch module is turned on, the logic module outputs a low level, and the power supply module is controlled to cut off power.

[0025] In a third aspect, some embodiments of the present application provide a terminal device, comprising at least the soft switch control circuit described in any embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions of some embodiments of the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1A schematic diagram of a flow chart of a soft switch control circuit provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The technical solutions in some embodiments of the present application will be described below in conjunction with the drawings in some embodiments of the present application.

[0029] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0030] Devices with storage often cannot be powered off directly or shut down by pressing a button, which will lead to data loss, and even damage the storage chip, causing economic losses. The correct shutdown logic is that the device needs to write data to the storage chip when the button is pressed to shut down. This requires that after the button is pressed, the device can still maintain normal power supply until the main chip completes the data writing operation and closes most of the running processes, and then controls the power chip to power off. Different from the direct power off shutdown of the hardware, this process is usually called soft shutdown. At present, in order to achieve soft shutdown, it is necessary to use a PMU chip with a soft shutdown function, but this chip is relatively expensive and cannot be generally applied to various CPUs or MCUs. Therefore, how to achieve soft shutdown at a low cost and adapt to various different processing chips is a problem that needs to be solved urgently. In view of this, some embodiments of the present application provide a soft switch control circuit, a control method and a terminal device. The soft switch control circuit includes: a key module, a first switch module, a second switch module and a logic module, wherein: the key module is connected to the first switch module, the input end of the first switch module is connected to the control module, the output end of the first switch module and the second switch module are respectively connected to the input end of the logic module, the output end of the logic module is connected to the power module, and the power module is used to supply power to the control module; the control module is a different type of control chip, and the soft switch control circuit is used to control the power supply module to power on or off. Through the soft switch control circuit provided by the present application, soft shutdown is achieved, the use of proprietary chips is avoided, the cost is reduced, and various different types of processing chips can be adapted.

[0031] like Figure 1 As shown, an embodiment of the present application provides a soft switch control circuit, which includes: a key module S3, a first switch module Q13, a second switch module Q14 and a logic module U60, wherein:

[0032] The button module S3 is connected to the first switch module Q13, the input end of the first switch module Q13 is connected to the control module, the output end of the first switch module Q13 and the second switch module Q14 are respectively connected to the input end of the logic module U60, the output end of the logic module U60 is connected to the power module, and the power module is used to power the control module; the first switch module Q13 is connected to the control module through the resistor R76 and the diode D74, the control module is a control chip of different types, and the soft switch control circuit is used to control the power on or off of the power module.

[0033] Among them, the button module is a touch button, the button module is connected to the ground through ESD24, and ESD24 is an ESD device; the first switch module and the second switch module are triodes, and the logic module is a bistable logic chip; the control module can be different types of processor chips, and the specific model and brand are not specifically limited.

[0034] like Figure 1 The circuit diagram shown is applied to a terminal device with a processor chip as the main control. The storage chip on the terminal device is EMMC (Embedded Multi Media Card). After the touch switch (key module) is pressed for 3 seconds, the processor chip stores the data back into the EMMC chip, shuts down the system and controls the power chip to cut off power.

[0035] The embodiment of the present application provides a flexible, reliable, and low-cost soft shutdown circuit, which can be realized by only diodes, triodes, resistors and capacitors in conjunction with the input and output interface GPIO of the processor chip. The shutdown time after a button is pressed can be set by software.

[0036] The control module in some embodiments of the present application can be a single-chip microcomputer of different types, which realizes soft shutdown, avoids the use of proprietary chips, reduces costs, and can adapt to various types of processing chips. Through the soft switch control circuit, soft shutdown is realized, which avoids the use of proprietary chips, reduces costs, and can adapt to various types of processing chips.

[0037] Another embodiment of the present application further supplements the soft switch control circuit provided in the above embodiment.

[0038] Optionally, one end of the button module, ie, the second pin, is connected to the third pin of the first switch module Q13, and the second pin of the first switch module Q13 is connected to the second pin of the logic module U60.

[0039] Some embodiments of the present application can control the power supply chip to be powered on or off by connecting a button to a first switch module, which is then connected to a logic module.

[0040] Optionally, a first pin of the second switch module Q14 is connected to a 3.3V voltage, and a third pin of the second switch module Q14 is connected to a second pin of the logic module U60 and to a second pin of the first switch module Q13.

[0041] In some embodiments of the present application, the second switch module is connected to the logic module, and when the second switch module is turned on, the terminal device can work normally.

[0042] Optionally, the third pin of the first switch module Q13 is connected to the first end of the seventy-fourth diode D74 through the seventy-sixth resistor R76, and the second end of the seventy-fourth diode D74 is connected to the control pin of the control module.

[0043] In some embodiments of the present application, the third pin of the first switch module is connected to the first end of the seventy-fourth diode through the seventy-sixth resistor, and the second end of the seventy-fourth diode is connected to the control pin of the control module, thereby realizing system shutdown on the terminal device.

[0044] Optionally, the sixth pin of the logic module U60 is connected to the power module.

[0045] In some embodiments of the present application, the sixth pin of the logic module is connected to the power module to control the power on and off of the power chip.

[0046] Optionally, the first switch module Q13 is a PNP transistor, and the second switch module Q14 is an NPN transistor.

[0047] The first pin of the first switch module is connected to the resistor R74, and the 5V DC is connected to the resistor R74 through D73.

[0048] Among them, D73 and D74 are Schottky diodes, Q13 is a PNP transistor, and Q14 is an NPN transistor.

[0049] For example, the PNP transistor can use BC858A. Table 1 shows the main parameters of BC858A.

[0050] Table 1

[0051]

[0052] The PNP transistor needs to have a good shutdown performance to ensure that the key will not shut down hard when the power is turned on. Diotec's PNP transistor BC858A when -V EB =5V, -I EBO =100nA, with good shutdown performance;

[0053] NPN transistor BC848A, Table 2 shows the main parameters of BC848A, as shown in Table 2:

[0054] Table 2

[0055]

[0056] The NPN transistor needs good conductivity to ensure that the KEY signal is at a low level when PWR_CTRL is pulled low. When VBEsat=700mV and IC=10mA, the NPN transistor BC848A of Diotec Company is sufficient to ensure that the KEY signal is pulled low, which meets the requirements.

[0057] In some embodiments of the present application, the PNP transistor needs to have good shutdown properties to ensure that the key will not shut down hard when the power is turned on, and the NPN transistor needs to have good conductivity to ensure that the KEY signal is at a low level when PWR_CTRL is pulled low.

[0058] Optionally, the logic module is a bistable logic chip.

[0059] Among them, the U60 chip is 5BE1-2C72, which is a bistable logic chip, and VDD_5V is the normal power supply. It does not work when powered on, and the 6th pin outputs a low level; when the 2nd pin is pulled low, the 6th pin level flips and outputs a high level; when the 2nd pin is pulled low again, the 6th pin outputs a low level.

[0060] The logic module in some embodiments of the present application is a bistable logic chip, which controls the power on and off of the power module by flipping the output signal.

[0061] Optionally, the seventy-fourth diode is a Schottky diode.

[0062] The diode in some embodiments of the present application is a Schottky diode, the lower the conduction voltage.

[0063] Schottky diode D74 uses BAT46W. Table 3 shows the main parameters of BAT46W.

[0064] Table 3

[0065]

[0066] The selection of D74 requires special attention, and the lower the on-voltage, the better. Diotec's Schottky diode BAT46W has an on-voltage of less than 0.25V (the current in the IO port input detection mode of H3 is extremely small, less than 0.1mA), which is recognized as a low level for common MCUs and CPUs.

[0067] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.

[0068] Another embodiment of the present application provides a soft switch control method, which is applied to any of the above-mentioned soft switch control circuits, and the method includes:

[0069] During the boot process, the button module is pressed, the first switch module is turned on, so that the logic module outputs a high level to supply power to the power module;

[0070] During normal operation, the first switch module is turned off, and when the button module is pressed, the second switch module is turned on;

[0071] During the shutdown process, the button module is pressed for a preset time, the first switch module is turned off, and when the control module detects that the duration of the low level is the preset time, the data is stored in the storage module, and the second switch module is turned on, the logic module outputs a low level, and the control power supply module is powered off.

[0072] Specifically, the power-on process: press S3, the first pin and the third pin of the PNP transistor Q13 are pulled low, the first switch module Q13 is turned on, the signal KEY is pulled low, then the second pin of the chip U60 is pulled low, the sixth pin outputs a high level, POWER_EN is high, the power chip is enabled, and the system installed on the terminal device is powered on and starts working;

[0073] Normal operation: VCC-5V is 5V, the first pin and the third pin of the first switch module Q13 are pulled high, the first switch module Q13 is turned off, and the first switch module Q13 will not work when the button module S3 is pressed; VCC-3V3 is 3.3V, and the second switch module Q14 is turned on;

[0074] Shutdown process: Press S3 for 3S, the first switch module Q13 is turned off, and CPU_DET is pulled low through R76 and D74. After the control module CPU detects the low level for 3S, it stores the data in the storage module EMMC, shuts down the system on the terminal device, and then controls PWR_CTRL to output a low level; since the second switch module Q14 is turned on, the signal KEY is pulled low, the sixth pin of the logic module U6 flips to a low level, POWER_EN outputs a low level, the power chip is turned off, and the system is powered off.

[0075] Some embodiments of the present application provide a terminal device, comprising at least the above-mentioned soft switch control circuit.

[0076] The terminal device provided in the embodiment of the present application includes a soft switch control circuit, which is connected to a power module and a control module respectively. The terminal device can be a computer, which is used in conjunction with a server to realize multimedia and peripheral interaction functions such as a mouse and a keyboard. After the user presses a button to shut down, some multimedia data needs to be restored, so a soft shutdown function is required.

[0077] Some embodiments of the present application provide a soft switch control circuit, a control method and a terminal device, wherein the soft switch control circuit includes: a key module, a first switch module, a second switch module and a logic module, wherein: the key module is connected to the first switch module, the input end of the first switch module is connected to the control module, the output end of the first switch module and the second switch module are respectively connected to the input end of the logic module, the output end of the logic module is connected to the power module, and the power module is used to supply power to the control module; the control module is a control chip of different types, and the soft switch control circuit is used to control the power supply module to power on or off. Through the soft switch control circuit provided by the present application, soft shutdown is achieved, avoiding the use of proprietary chips, reducing costs, and being adaptable to various types of processing chips.

[0078] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0079] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.

[0080] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0081] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0082] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A soft switch control circuit, characterized in that: The soft switch control circuit includes: a key module, a first switch module, a second switch module and a logic module, wherein: The button module is connected to the first switch module, the input end of the first switch module is connected to the control module, the output end of the first switch module and the second switch module are respectively connected to the input end of the logic module, the output end of the logic module is connected to the power module, the first switch module is connected to the control module through a resistor and a diode, and the power module is used to supply power to the control module; the control module is a control chip of different types, and the soft switch control circuit is used to control the power supply module to power on or off.

2. The soft switch control circuit according to claim 1, characterized in that: One end of the button module is connected to the third pin of the first switch module, and the second pin of the first switch module is connected to the second pin of the logic module.

3. The soft switch control circuit according to claim 2, characterized in that: The first pin of the second switch module is connected to a 3.3V voltage, and the third pin of the second switch module is connected to the second pin of the logic module and to the second pin of the first switch module.

4. The soft switch control circuit according to claim 3, characterized in that: The third pin of the first switch module is connected to the first end of the seventy-fourth diode through the seventy-sixth resistor, and the second end of the seventy-fourth diode is connected to the control pin of the control module.

5. The soft switch control circuit according to claim 4, characterized in that: The sixth pin of the logic module is connected to the power module.

6. The soft switch control circuit according to claim 1, characterized in that: The first switch module is a PNP transistor, and the second switch module is an NPN transistor.

7. The soft switch control circuit according to claim 1, characterized in that: The logic module is a bistable logic chip.

8. The soft switch control circuit according to claim 4, characterized in that: The seventy-fourth diode is a Schottky diode.

9. A soft switch control method, characterized in that: Applied to the soft switch control circuit according to any one of claims 1 to 8, the method comprises: During the boot process, the button module is pressed, the first switch module is turned on, so that the logic module outputs a high level to supply power to the power module; During normal operation, the first switch module is turned off, and when the button module is pressed, the second switch module is turned on; During the shutdown process, the button module is pressed for a preset time, the first switch module is turned off, and when the control module detects that the duration of the low level is the preset time, the data is stored in the storage module, and the second switch module is turned on, the logic module outputs a low level, and the control power supply module is powered off.

10. A terminal device, characterized in that: At least comprising the soft switch control circuit as described in any one of claims 1 to 8 above.