A power supply circuit based on touch switch

By introducing MCU modules and locking modules into the light-touch power switch circuit, storing and controlling the power state, the problem of erroneous operation and unlocking caused by unstable external power supply is solved, and the normal operation and anti-jitter of the power supply system in an unstable environment is achieved. Improvement of capabilities.

CN111478554BActive Publication Date: 2025-02-11SHENZHEN JIAYZ PHOTO IND LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010257533.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-03
Publication Date
2025-02-11
Estimated Expiration
2040-04-03

AI Technical Summary

Technical Problem

The existing light-touch power switch circuit is prone to unblocking when the external power supply is unstable or jittered, resulting in abnormal shutdown of the system. Especially in products with high power consumption and high current, this problem is difficult to effectively solve.

Method used

A power circuit based on a touch switch is designed, including a touch switch, a switch module, a MCU module and a locking module. The MCU module stores the power on or off status and controls the locking module to output the corresponding signal to ensure the power supply system and external power supply. connect or disconnect between them.

Benefits of technology

This power supply circuit can maintain normal working state when the external power supply is unstable or the power supply system is jittered, and is not affected by power failure or instantaneous power outage, which significantly improves the ability to resist power jitter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111478554B_ABST
    Figure CN111478554B_ABST
Patent Text Reader

Abstract

The present invention provides a power supply circuit based on a touch switch, including a touch switch, a switch module, an MCU module and a locking module. The touch switch is used to generate and send a power-on signal or a power-off signal to the MCU module; the MCU module is used to receive the power-on signal or the power-off signal sent by the touch switch, send a power-on lock drive signal or a power-off lock drive signal to the locking module, and store the power-on state or the power-off state; the locking module is used to receive the power-on lock drive signal or the power-off lock drive signal, and send the power-on lock signal or the power-off lock signal to the switch module; the switch module is connected between the input end of the power supply system and the external power supply, and is used to receive the power-on lock signal or the power-off lock signal to connect or disconnect the power supply system and the external power supply. In the case where the external power supply is unstable or the system is jittering, the power supply system can still work normally, is not affected by power failure or instantaneous power failure, and has a strong ability to resist power supply jitter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power supply, and in particular to a power supply circuit based on a touch switch. Background Art

[0002] At present, most of the touch-type power switch circuits use MOS tubes and locking circuits. When the touch switch is pressed, the power is supplied, the circuit is connected, and the power lock circuit outputs a locking signal. After the touch switch is released, the power circuit remains connected and the system is turned on. When the touch switch is pressed again, the power lock circuit outputs an unlocking signal. After the touch switch is released, the power supply circuit is disconnected and the circuit system is shut down. However, such a circuit has no memory effect. Once the locking signal jitters, such as the product vibrates due to input power supply voltage jitter, causing the circuit to be unlocked by mistake, the system will shut down abnormally. In order to avoid the problem of abnormal shutdown caused by circuit unlocking due to mistaken operation, the filter capacitor at the power output end is usually increased to prevent voltage jitter from causing system shutdown, but for products with high power consumption and high current, the problem still exists. Summary of the invention

[0003] The present invention aims to solve one of the technical problems in the related art to at least a certain extent. To this end, one object of the present invention is to provide a power supply circuit based on a touch switch, which has a strong ability to resist power supply jitter.

[0004] The technical solution adopted by the present invention is:

[0005] The present invention provides a power supply circuit based on a touch switch, which is applied to a power supply system, and includes a touch switch, a switch module, an MCU module and a locking module, wherein:

[0006] A touch switch, used to generate a power-on signal or a power-off signal, and send the power-on signal or the power-off signal to the MCU module;

[0007] The MCU module is used to receive the power-on signal or the power-off signal sent by the touch switch, send the power-on lock driving signal or the power-off lock driving signal to the locking module, and store the power-on state or the power-off state;

[0008] A locking module, used for receiving the power-on locking driving signal or the power-off locking driving signal, and sending a power-on locking signal or a power-off locking signal to the switch module;

[0009] The switch module is connected between the input end of the power supply system and the external power supply, and is used to receive the power-on lock signal or the power-off lock signal sent by the lock module to connect or disconnect the power supply system and the external power supply.

[0010] As a further improvement of the above scheme, the circuit also includes a power reverse connection protection module, the input end of the power reverse connection protection module is connected to the external power supply, and the output end of the power reverse connection protection module is respectively connected to the input end of the switch module and the power input end of the MCU module.

[0011] As a further improvement of the above scheme, the power reverse connection protection module includes a first PMOS tube and a first resistor, the first end of the first resistor is connected to the power ground, the drain of the first PMOS tube is connected to the external power supply, the gate of the first PMOS tube is connected to the second end of the first resistor, and the source of the first PMOS tube is respectively connected to the input end of the switch module and the power input end of the MCU module.

[0012] As a further improvement of the above scheme, the switch module includes a second PMOS tube, a third resistor and a fourth resistor, the source of the second PMOS tube is connected to the source of the first PMOS tube, the source of the second PMOS tube is also connected to the first end of the third resistor, the second end of the third resistor is connected to the output end of the locking module, the gate of the second PMOS tube is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the output end of the locking module, and the drain of the second PMOS tube is connected to the input end of the power supply system.

[0013] As a further improvement of the above scheme, the locking module includes a fifth resistor, a sixth resistor and a first transistor, the base of the first transistor is connected to the output end of the MCU module by connecting the fifth resistor, the base of the first transistor is also connected to the power ground by connecting the sixth resistor, the emitter of the first transistor is connected to the power ground, and the collector of the first transistor is connected to the second end of the fourth resistor.

[0014] As a further improvement of the above scheme, the power supply circuit also includes a first diode, the first end of the touch switch is connected to the power ground, the second end of the touch switch is connected to the cathode of the first diode, and the anode of the first diode is connected to the input end of the MCU module.

[0015] The beneficial effects of the present invention are:

[0016] A power supply circuit based on a touch switch includes a touch switch, a switch module, an MCU module and a locking module. The touch switch is used to generate a power-on signal or a power-off signal, and send the power-on signal or the power-off signal to the MCU module; the MCU module is used to receive the power-on signal or the power-off signal sent by the touch switch, send a power-on lock drive signal or a power-off lock drive signal to the locking module, and store the power-on state or the power-off state; the locking module is used to receive the power-on lock drive signal or the power-off lock drive signal, and send the power-on lock signal or the power-off lock signal to the switch module; the switch module is connected between the input end of the power supply system and the external power supply, and is used to receive the power-on lock signal or the power-off lock signal sent by the locking module, so as to connect or disconnect the power supply system and the external power supply. The power-on state or the power-off state of the power supply system is stored in the internal memory of the MCU, and the locking module is controlled to output the power-on lock signal or the power-off lock signal, so that when the external power supply is unstable or the power supply system is jittering, the power supply system can still work normally, is not affected by power failure or instantaneous power failure, and has strong anti-power jitter capability. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a block diagram of a power circuit module based on a touch switch of the present invention;

[0018] Figure 2 The present invention is a schematic diagram of a power supply circuit based on a light touch switch. DETAILED DESCRIPTION

[0019] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0020] Figure 1 This is a block diagram of the power circuit module based on the touch switch of the present invention, refer to Figure 1 A power supply circuit based on a touch switch is applied to a power supply system, including a touch switch, a switch module, an MCU module and a locking module, wherein:

[0021] A touch switch is used to generate a power-on signal or a power-off signal and send the power-on signal or the power-off signal to the MCU module;

[0022] The MCU module is used to receive a power-on signal or a power-off signal sent by the touch switch, send a power-on lock drive signal or a power-off lock drive signal to the lock module, and store the power-on state or the power-off state;

[0023] The locking module is used to receive the power-on locking driving signal or the power-off locking driving signal sent by the MCU module, and send the power-on locking signal or the power-off locking signal to the switch module;

[0024] The switch module is connected between the input end of the power supply system and the external power supply, and is used to receive the power-on lock signal or the power-off lock signal sent by the lock module to connect or disconnect the power supply system and the external power supply.

[0025] Furthermore, the power supply circuit also includes a power supply reverse connection protection module, the input end of the power supply reverse connection protection module is connected to the external power supply, and the output end of the power supply reverse connection protection module is respectively connected to the input end of the switch module and the power input end of the MCU module.

[0026] Figure 2 This is the power supply circuit schematic diagram based on the touch switch of the present invention, refer to Figure 2 In the power circuit, the MCU module includes a main control chip, and the main control chip adopts a chip model HC32L110C6UA. The main control chip of this embodiment includes a built-in memory, and the built-in memory is used to store the power state bit, that is, to store the power-on state or the power-off state.

[0027] Specifically, the power reverse connection protection module includes a first PMOS tube Q1 and a first resistor R1. The drain of the first PMOS tube Q1 is connected to the external power supply VCC_IN. In this embodiment, the external power supply voltage ranges from 1.8V to 5.5V. The gate of the first PMOS tube Q1 is connected to the second end of the first resistor R1. The first end of the first resistor R1 is connected to the power ground. The source of the first PMOS tube Q1 is respectively connected to the input end of the switch module and the power input end MCU_VCC of the MCU module.

[0028] Specifically, the switch module includes a second PMOS tube Q2, a third resistor R3 and a fourth resistor R4, the source of the second PMOS tube Q2 is connected to the source of the first PMOS tube Q1, the source of the second PMOS tube Q2 is also connected to the first end of the third resistor R3, the second end of the third resistor R3 is connected to the output end of the locking module, the gate of the second PMOS tube Q2 is connected to the first end of the fourth resistor R4, the second end of the fourth resistor R4 is connected to the output end of the locking module, and the drain of the second PMOS tube Q2 is connected to the input end of the power supply system VCC_OUT.

[0029] Specifically, the locking module includes a fifth resistor R5, a sixth resistor R6 and a first transistor Q3. The base of the first transistor Q3 is connected to the power on / off signal output terminal AIN1 / P32 of the MCU module by connecting the fifth resistor R5. The base of the first transistor Q3 is also connected to the power ground by connecting the sixth resistor R6. The emitter of the first transistor Q3 is connected to the power ground, and the collector of the first transistor Q3 is connected to the second end of the fourth resistor R4.

[0030] Specifically, the power supply circuit also includes a first diode D2, the first end of the touch switch K1 is connected to the power ground, the second end of the touch switch K1 is connected to the cathode of the first diode D2, and the anode of the first diode D2 is connected to the power on / off signal input terminal AIN1 / P26 of the MCU module.

[0031] The working principle of the touch switch power supply circuit in this embodiment is that when the external power supply is connected, the MCU module starts to work and reads the power switch signal status bit in the built-in memory of the main control chip. If the power status bit is in the power-on state, the AIN2 / P32 pin of the main control chip outputs a high level, and the power-on lock signal is output through the lock module, the second PMOS tube Q2 is turned on, the power supply system is connected to the external power supply, and the system starts to work; if the power status bit is in the power-off state, the main control chip turns on the ultra-low power consumption mode and enters the sleep state, and the system is more power-saving.

[0032] When the system is in shutdown state, the touch switch is pressed, receiving the power-on signal, the AIN1 / P26 pin of the main control chip receives the power-on control signal, and its state changes. The main control chip saves the power-on state in the built-in memory, and the AIN2 / P32 pin of the main control chip outputs a high level, outputs a power-on lock signal through the lock module, turns on the second PMOS tube Q2, and the power supply system is connected to the external power supply. The system starts working, and the main control chip turns on the ultra-low power consumption mode and enters the sleep state, which is more power-saving. During the sleep period, the main control chip keeps the level of the AIN2 / P32 pin continuously at a high level. According to needs, the time required for the touch switch can be adjusted by adjusting the length of time the built-in program of the main control chip detects the touch switch being pressed, such as pressing for more than 2 seconds to turn on.

[0033] When the system is in the power-on state, the touch switch is pressed and receives the shutdown signal. The AIN1 / P26 pin of the main control chip receives the shutdown control signal, and its state changes. The main control chip writes the shutdown state in the built-in memory, and the AIN2 / P32 pin of the main control chip outputs a low level. The shutdown lock signal is output through the lock module, and the second PMOS tube Q2 is turned off. The power supply system is disconnected from the external power supply, and the system is shut down.

[0034] When the external power supply is unstable and suddenly loses power and is turned on again, the main control chip reads the power on / off status of the built-in memory. If it is in the power on state, the AIN2 / P32 pin is controlled to output a high level. If it is in the power off state, the AIN2 / P32 pin is controlled to output a low level, thereby achieving power off protection.

[0035] A power supply circuit based on a touch switch includes a touch switch, a switch module, an MCU module and a locking module. The touch switch is used to generate a power-on signal or a power-off signal, and send the power-on signal or the power-off signal to the MCU module; the MCU module is used to receive the power-on signal or the power-off signal sent by the touch switch, send a power-on lock drive signal or a power-off lock drive signal to the locking module, and store the power-on state or the power-off state; the locking module is used to receive the power-on lock drive signal or the power-off lock drive signal, and send the power-on lock signal or the power-off lock signal to the switch module; the switch module is connected between the input end of the power supply system and the external power supply, and is used to receive the power-on lock signal or the power-off lock signal sent by the locking module, so as to connect or disconnect the power supply system and the external power supply. The power-on state or the power-off state of the power supply system is stored by the MCU, and the locking module is controlled to output the power-on lock signal or the power-off lock signal, so that when the external power supply is unstable or the power supply system is jittering, the power supply system can still work normally, is not affected by power failure or instantaneous power failure, and has strong anti-power supply jitter capability.

[0036] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A power supply circuit based on a touch switch, applied to a power supply system, characterized in that: It includes a touch switch, a switch module, an MCU module and a locking module, wherein: A touch switch, used to generate a power-on signal or a power-off signal, and send the power-on signal or the power-off signal to the MCU module; The MCU module is used to receive the power-on signal or the power-off signal sent by the touch switch, send the power-on lock driving signal or the power-off lock driving signal to the locking module, and store the power-on state or the power-off state; A locking module, used for receiving the power-on locking driving signal or the power-off locking driving signal, and sending a power-on locking signal or a power-off locking signal to the switch module; A switch module, connected between the input end of the power supply system and the external power supply, and used to receive a power-on lock signal or a power-off lock signal sent by the lock module, so as to connect or disconnect the power supply system and the external power supply; The circuit also includes a power reverse connection protection module, the input end of the power reverse connection protection module is connected to the external power supply, and the output end of the power reverse connection protection module is respectively connected to the input end of the switch module and the power input end of the MCU module; The MCU module includes a main control chip, which includes a built-in memory. The built-in memory is used to store the power status bit. When the external power supply is unstable and suddenly loses power and is turned on again, the main control chip reads the power on / off status of the built-in memory. If it is in the power-on state, the AIN2 / P32 pin is controlled to output a high level. If it is in the power-off state, the AIN2 / P32 pin is controlled to output a low level, thereby realizing power-off protection.

2. The power supply circuit based on the touch switch according to claim 1, characterized in that: The power reverse connection protection module includes a first PMOS tube and a first resistor, wherein the first end of the first resistor is connected to the power ground, the drain of the first PMOS tube is connected to the external power supply, the gate of the first PMOS tube is connected to the second end of the first resistor, and the source of the first PMOS tube is respectively connected to the input end of the switch module and the power input end of the MCU module.

3. The power supply circuit based on the touch switch according to claim 2, characterized in that: The switch module includes a second PMOS tube, a third resistor and a fourth resistor, the source of the second PMOS tube is connected to the source of the first PMOS tube, the source of the second PMOS tube is also connected to the first end of the third resistor, the second end of the third resistor is connected to the output end of the locking module, the gate of the second PMOS tube is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the output end of the locking module, and the drain of the second PMOS tube is connected to the input end of the power supply system.

4. The power supply circuit based on the touch switch according to claim 3 is characterized in that: The locking module includes a fifth resistor, a sixth resistor and a first transistor, the base of the first transistor is connected to the output end of the MCU module by connecting the fifth resistor, the base of the first transistor is also connected to the power ground by connecting the sixth resistor, the emitter of the first transistor is connected to the power ground, and the collector of the first transistor is connected to the second end of the fourth resistor.

5. The power supply circuit based on a touch switch according to any one of claims 1 to 4, characterized in that: The power supply circuit also includes a first diode, a first end of the touch switch is connected to a power ground, a second end of the touch switch is connected to a cathode of the first diode, and an anode of the first diode is connected to an input end of the MCU module.

Citation Information

Patent Citations

  • LED lamp control circuit and LED lamp

    CN101848580A

  • Standby switch circuit and miniature electronic device

    CN202159236U

  • Power supply circuit based on touch switch

    CN212115127U