CN216981880U - Switching circuit - Google Patents

Switching circuit Download PDF

Info

Publication number
CN216981880U
CN216981880U CN202220725405.1U CN202220725405U CN216981880U CN 216981880 U CN216981880 U CN 216981880U CN 202220725405 U CN202220725405 U CN 202220725405U CN 216981880 U CN216981880 U CN 216981880U
Authority
CN
China
Prior art keywords
chip
controlled
switch
switch module
power supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202220725405.1U
Other languages
Chinese (zh)
Inventor
曹建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Tuya Information Technology Co Ltd
Original Assignee
Hangzhou Tuya Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Tuya Information Technology Co Ltd filed Critical Hangzhou Tuya Information Technology Co Ltd
Priority to CN202220725405.1U priority Critical patent/CN216981880U/en
Application granted granted Critical
Publication of CN216981880U publication Critical patent/CN216981880U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

The utility model discloses a switch circuit, which comprises an automatic reset switch and a switch module, wherein when the automatic reset switch is pressed for the first time, a power supply provides a high level for the switch module so that the switch module controls the power supply to supply power to a chip to be controlled, after the chip to be controlled is electrified, the chip to be controlled provides the high level for the switch module so as to ensure that the power supply continuously supplies power to the chip to be controlled, at the moment, because the automatic reset switch is also connected with the input end of the chip to be controlled, when the automatic reset switch is pressed again, the chip to be controlled can make corresponding response action according to the time when the input end is connected with the high level, namely the time when the automatic reset switch is pressed, the multifunctional processing of a single key is realized, the circuit design is simple, and the design cost is low.

Description

Switching circuit
Technical Field
The present invention relates to the field of switching circuits, and in particular, to a switching circuit.
Background
At present, many intelligent science and technology products gradually develop towards miniaturization, and the smaller size enables the products not to have excessive space for placing various switch keys on the structure. At present, a single key on a scientific and technological product can only realize one function, such as power-on or power-off, and a plurality of keys are required to be arranged to realize a plurality of functions, so that the volume of the product is increased. Therefore, a switch key capable of realizing multiple functions is urgently needed.
SUMMERY OF THE UTILITY MODEL
The utility model aims to provide a switch circuit, which realizes multifunctional processing of a single key and has simple circuit design and low design cost.
In order to solve the technical problem, the utility model provides a switching circuit, which comprises an automatic reset switch and a switching module;
the first end of the automatic reset switch is connected with a power supply, and the second end of the automatic reset switch is respectively connected with the control end of the switch module and the input end of the chip to be controlled;
the first end of the switch module is connected with the power supply, the second end of the switch module is connected with the power supply end of the chip to be controlled, the control end of the switch module is also connected with the output end of the chip to be controlled, and the chip to be controlled is used for outputting a high level to the control end of the switch module when the chip to be controlled is electrified;
the switch module is used for being switched on when a control end of the switch module receives a high level so that the power supply supplies power to the chip to be controlled, and being switched off when the control end receives a low level so that the power supply stops supplying power to the chip to be controlled.
Preferably, the method further comprises the following steps: at least one of a first diode, a second diode, and a third diode;
the anode of the first diode is connected with the second end of the automatic reset switch and the anode of the third diode respectively, and the cathode of the first diode is connected with the control end of the switch module and the cathode of the second diode respectively;
the anode of the second diode is connected with the output end of the chip to be controlled;
and the cathode of the third diode is connected with the input end of the chip to be controlled.
Preferably, the device further comprises a first capacitor;
and the first end of the first capacitor is connected with the second end of the automatic reset switch, and the second end of the first capacitor is grounded.
Preferably, the current limiting device further comprises a current limiting module, one end of the current limiting module is connected with the switch module, the other end of the current limiting module is respectively connected with the second end of the automatic reset switch and the output end of the chip to be controlled, and the current limiting module is used for limiting current.
Preferably, the current limiting module is a current limiting resistor.
Preferably, the power supply is also included.
Preferably, the device further comprises the chip to be controlled, wherein the chip to be controlled is an MCU.
Preferably, the switch module includes an NPN-type triode and a PMOS transistor;
the base electrode of the NPN type triode is used as the control end of the switch module, the emitting electrode of the NPN type triode is grounded, and the collector electrode of the NPN type triode is connected with the grid electrode of the PMOS tube;
and the source electrode of the PMOS tube is used as the first end of the switch module, and the drain electrode of the PMOS tube is used as the second end of the switch module.
Preferably, the device further comprises a first bias resistor and a second bias resistor;
the first end of the first bias resistor is connected with the base electrode of the NPN type triode, and the second end of the first bias resistor is respectively connected with the ground and the emitting electrode of the NPN type triode;
the first end of the second bias resistor is respectively connected with the power supply and the source electrode of the PMOS tube, and the second end of the second bias resistor is respectively connected with the grid electrode of the PMOS tube and the collector electrode of the NPN type triode.
Preferably, the device further comprises a second capacitor, a first end of the second capacitor is respectively connected with the power supply and the source electrode of the PMOS transistor, and a second end of the second capacitor is respectively connected with the gate electrode of the PMOS transistor and the collector electrode of the NPN-type triode.
The utility model discloses a switch circuit, which comprises an automatic reset switch and a switch module, wherein when the automatic reset switch is pressed for the first time, a power supply provides a high level for the switch module so that the switch module controls the power supply to supply power to a chip to be controlled, after the chip to be controlled is electrified, the chip to be controlled provides the high level for the switch module so as to ensure that the power supply continuously supplies power to the chip to be controlled, at the moment, because the automatic reset switch is also connected with the input end of the chip to be controlled, when the automatic reset switch is pressed again, the chip to be controlled can make corresponding response action according to the time when the input end is connected with the high level, namely the time when the automatic reset switch is pressed, the multifunctional processing of a single key is realized, the circuit design is simple, and the design cost is low.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a switching circuit according to the present invention;
fig. 2 is a schematic structural diagram of another switching circuit provided in the present invention.
Detailed Description
The key of the utility model is to provide a switch circuit, which realizes the multifunctional processing of a single key and has simple circuit design and low design cost.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a switch circuit according to the present invention.
A switching circuit comprises an automatic reset switch 1 and a switch module 2;
the first end of the automatic reset switch 1 is connected with the power supply 4, and the second end of the automatic reset switch is respectively connected with the control end of the switch module 2 and the input end of the chip 3 to be controlled;
the first end of the switch module 2 is connected with the power supply 4, the second end of the switch module is connected with the power supply end of the chip 3 to be controlled, the control end of the switch module is also connected with the output end of the chip 3 to be controlled, and the chip 3 to be controlled is used for outputting a high level to the control end of the switch module 2 when the chip is electrified;
the switch module 2 is used for being switched on when a control end of the switch module receives a high level, so that the power supply 4 supplies power to the chip 3 to be controlled, and being switched off when the control end receives a low level, so that the power supply 4 stops supplying power to the chip 3 to be controlled.
Considering that the existing switch key can only realize a single function, and the realization of multiple functions requires the design of multiple keys in a product, thereby occupying a large amount of space and causing the circuit design to be complex. In order to solve the above problems, in the present application, an automatic reset switch 1 and a switch module 2 are provided, the automatic reset switch 1 is used to power on the chip 3 to be controlled when the computer is started, the switch module 2 is controlled by the output end of the chip 3 to be controlled to maintain the power supply 4 to supply power to the computer after the chip 3 to be controlled is powered on, and the automatic reset switch 1 is used as a multifunctional key to implement other functions.
Specifically, when waiting to control chip 3 and not going up the electricity, if press automatic re-setting switch 1, power 4 exports the high level to switch module 2's control end, and switch module 2 switches on for power 4 is waiting to control chip 3 power supply, waits to control chip 3 to go up the electricity after, and the output of self exports the high level to switch module 2's control end, makes and waits to control chip 3 and keeps the conducting state, and power 4 lasts for waiting to control chip 3 power supply. If the automatic reset switch 1 is pressed at this time, the automatic reset switch 1 is turned on, the power supply 4 provides a high level to the input end of the chip 3 to be controlled, the chip 3 to be controlled realizes different functions according to the time when the input end of the chip 3 is connected with the high level, that is, the time when the automatic reset switch 1 is connected, or the number of times when the automatic reset switch 1 is connected within the preset time, for example, when the chip 3 to be controlled detects that the input end is connected with the high level is 1S, the first operation is executed, when the chip 3 to be controlled detects that the input end is connected with the high level is 2S, the second operation is executed, when the number of times when the automatic reset switch 1 is pressed within 2S is 2 times, the third operation is executed, which operation is specifically executed, a technician can set the chip 3 to be controlled according to the own needs, and the application is not particularly limited herein. When the chip 3 to be controlled needs to be controlled to be turned off, an instruction can be sent to the chip 3 to be controlled through the automatic reset switch 1.
In summary, in this embodiment, the switch circuit includes the automatic reset switch 1 and the switch module 2, when the automatic reset switch 1 is pressed for the first time, the power supply 4 provides a high level for the switch module 2, so that the switch module 2 controls the power supply 4 to supply power to the chip 3 to be controlled, after the chip 3 to be controlled is powered on, the chip 3 to be controlled provides a high level for the switch module 2, so as to ensure that the power supply 4 continuously supplies power to the chip 3 to be controlled, at this time, because the automatic reset switch 1 is further connected to the input end of the chip 3 to be controlled, when the automatic reset switch 1 is pressed again, the chip 3 to be controlled can make a corresponding response action according to the time when the input end is connected to the high level, that is, the time when the automatic reset switch 1 is pressed again, so that multifunctional processing of a single key is realized, and the circuit design is simple, and the design cost is low.
On the basis of the above-described embodiment:
referring to fig. 2, fig. 2 is a schematic structural diagram of another switch circuit provided in the present invention. The POWER signal is an output signal of the POWER supply 4, VCC is a POWER supply end of the chip 3 to be controlled, POWER _ EN is an output end of the chip 3 to be controlled, and Function _ a is an input end of the chip 3 to be controlled.
As a preferred embodiment, the method further comprises the following steps: at least one of a first diode D1, a second diode D2, and a third diode D3;
the anode of the first diode D1 is connected to the second terminal of the automatic reset switch 1 and the anode of the third diode D3, respectively, and the cathode is connected to the control terminal of the switch module 2 and the cathode of the second diode D2, respectively;
the anode of the second diode D2 is connected with the output end of the chip 3 to be controlled;
the cathode of the third diode D3 is connected to the input of the chip 3 to be controlled.
In this embodiment, at least one of the first diode D1, the second diode D2 and the third diode D3 is provided, so that the backflow prevention is realized, the current backflow is avoided from damaging the chip 3 to be controlled, the stability and the safety of the circuit are improved, the cost is low, and the structure is simple.
As a preferred embodiment, further comprises a first capacitor C1;
the first terminal of the first capacitor C1 is connected to the second terminal of the automatic reset switch 1, and the second terminal is grounded.
In order to eliminate the high-frequency noise in the voltage signal output by the power supply 4, so that the chip 3 to be controlled and the switch module 2 can accurately identify the voltage signal output by the power supply 4, in this embodiment, a first capacitor C1 is provided, and the first capacitor C1 can filter the high-frequency noise in the signals input to the input end of the chip 3 to be controlled and the control end of the switch module 2, and filter the high-frequency noise carried in the signal output by the power supply 4, thereby playing a role of a bypass capacitor.
As a preferred embodiment, the controller further comprises a current limiting module, one end of the current limiting module is connected with the switch module 2, the other end of the current limiting module is respectively connected with the second end of the automatic reset switch 1 and the output end of the chip 3 to be controlled, and the current limiting module is used for limiting current.
Considering that if the circuit is short-circuited in the circuit, the switch module 2 may be damaged by an excessive current in the circuit, therefore, in this embodiment, the current limiting module is disposed at the control end of the switch module 2 to limit the current passing through the switch module 2, so as to improve the safety and stability of the circuit.
In a preferred embodiment, the current limiting module is a current limiting resistor R1.
In this embodiment, the current limiting module is a current limiting resistor R1, which realizes the effect of limiting the current passing through the switch module 2, and has low cost and simple circuit structure.
As a preferred embodiment, a power supply 4 is also included.
Considering that the chip 3 to be controlled cannot be supplied with power through the mains supply when a product with the above switching circuit is used outdoors or the like where charging is inconvenient, in the present embodiment, the power supply 4 is provided in the switching circuit, so that normal use of the product can be ensured under poor power supply conditions outdoors or the like. The power source 4 may be, but is not limited to, a lithium battery.
As a preferred embodiment, the system further comprises a chip 3 to be controlled, and the chip 3 to be controlled is an MCU.
In this embodiment, the chip 3 to be controlled is an MCU (micro Controller Unit), which is also called a microcomputer or a single chip, and is configured to appropriately reduce the frequency and specification of the cpu, and integrate peripheral interfaces such as a Memory, a counter, a USB (Universal Serial Bus), an a/D converter, a UART, a PLC (Programmable Logic Controller), a DMA (Direct Memory Access), and even an LCD driving circuit on a single chip to form a chip-level computer, so that the MCU outputs a high level to the control terminal of the switch module 2 when being powered on and executes a corresponding instruction or operation according to the on-time of the automatic reset switch 1 by programming the MCU.
As a preferred embodiment, the switch module 2 includes an NPN transistor Q1 and a PMOS transistor Q2;
the base electrode of the NPN type triode Q1 is used as the control end of the switch module 2, the emitting electrode is grounded, and the collector electrode is connected with the grid electrode of the PMOS tube Q2;
the source of the PMOS transistor Q2 serves as the first terminal of the switch module 2, and the drain serves as the second terminal of the switch module 2.
In this embodiment, the switch module 2 includes an NPN transistor Q1 and a PMOS transistor Q2, when a control terminal of the switch module 2 inputs a high level, that is, when a base of the NPN transistor Q1 inputs a high level, the emitter and the collector of the NPN transistor Q1 are connected, the gate of the PMOS transistor Q2 is grounded, and the source and the drain of the PMOS transistor Q2 are connected, that is, the first terminal and the second terminal of the switch module 2 are connected, so that the power supply 4 supplies power to the chip 3 to be controlled, and the circuit structure is simple and can be implemented only by using one NPN transistor Q1 and one PMOS transistor Q2.
As a preferred embodiment, the device further comprises a first bias resistor R2 and a second bias resistor R4;
a first end of the first bias resistor R2 is connected with the base electrode of the NPN type triode Q1, and a second end of the first bias resistor R2 is respectively connected with the ground and the emitting electrode of the NPN type triode Q1;
the first end of the second bias resistor R4 is connected to the power supply 4 and the source of the PMOS transistor Q2, and the second end is connected to the gate of the PMOS transistor Q2 and the collector of the NPN transistor Q1.
In this embodiment, a first bias resistor R2 and a second bias resistor R4 are provided to provide bias currents to the base of the NPN transistor Q1 and the gate of the PMOS transistor Q2, respectively, so that the PMOS transistor Q2 and the NPN transistor Q1 have a suitable operating point.
As a preferred embodiment, the device further includes a second capacitor C2, a first end of the second capacitor C2 is connected to the power supply 4 and the source of the PMOS transistor Q2, and a second end is connected to the gate of the PMOS transistor Q2 and the collector of the NPN transistor Q1.
In order to eliminate the high-frequency noise in the voltage signal output by the power supply 4, so that the chip 3 to be controlled and the switch module 2 can accurately identify the voltage signal output by the power supply 4, in this embodiment, a second capacitor C2 is provided, and the second capacitor C2 can filter the high-frequency noise in the signal input to the power supply end of the chip 3 to be controlled as a filtering object, and filter the high-frequency noise carried in the signal output by the power supply 4.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It should also be noted that, in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the utility model. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A switching circuit is characterized by comprising an automatic reset switch and a switching module;
the first end of the automatic reset switch is connected with a power supply, and the second end of the automatic reset switch is respectively connected with the control end of the switch module and the input end of the chip to be controlled;
the first end of the switch module is connected with the power supply, the second end of the switch module is connected with the power supply end of the chip to be controlled, the control end of the switch module is also connected with the output end of the chip to be controlled, and the chip to be controlled is used for outputting a high level to the control end of the switch module when the chip to be controlled is electrified;
the switch module is used for being switched on when a control end of the switch module receives a high level so that the power supply supplies power to the chip to be controlled, and being switched off when the switch module receives a low level so that the power supply stops supplying power to the chip to be controlled.
2. The switching circuit of claim 1, further comprising: at least one of a first diode, a second diode, and a third diode;
the anode of the first diode is connected with the second end of the automatic reset switch and the anode of the third diode respectively, and the cathode of the first diode is connected with the control end of the switch module and the cathode of the second diode respectively;
the anode of the second diode is connected with the output end of the chip to be controlled;
and the cathode of the third diode is connected with the input end of the chip to be controlled.
3. The switching circuit of claim 1, further comprising a first capacitor;
and the first end of the first capacitor is connected with the second end of the automatic reset switch, and the second end of the first capacitor is grounded.
4. The switch circuit according to claim 1, further comprising a current limiting module, wherein one end of the current limiting module is connected to the switch module, and the other end of the current limiting module is connected to the second end of the automatic reset switch and the output end of the chip to be controlled, respectively, and the current limiting module is configured to limit current.
5. The switching circuit of claim 4, wherein the current limiting module is a current limiting resistor.
6. The switching circuit of claim 1, further comprising the power supply.
7. The switching circuit according to claim 1, further comprising the chip to be controlled, wherein the chip to be controlled is an MCU.
8. The switching circuit according to any one of claims 1 to 7, wherein the switching module comprises an NPN transistor and a PMOS transistor;
the base electrode of the NPN type triode is used as the control end of the switch module, the emitting electrode of the NPN type triode is grounded, and the collector electrode of the NPN type triode is connected with the grid electrode of the PMOS tube;
and the source electrode of the PMOS tube is used as the first end of the switch module, and the drain electrode of the PMOS tube is used as the second end of the switch module.
9. The switching circuit of claim 8, further comprising a first bias resistor and a second bias resistor;
the first end of the first bias resistor is connected with the base electrode of the NPN type triode, and the second end of the first bias resistor is respectively connected with the ground and the emitting electrode of the NPN type triode;
the first end of the second bias resistor is respectively connected with the power supply and the source electrode of the PMOS tube, and the second end of the second bias resistor is respectively connected with the grid electrode of the PMOS tube and the collector electrode of the NPN type triode.
10. The switch circuit of claim 8, further comprising a second capacitor having a first terminal connected to the power supply and the source of the PMOS transistor, and a second terminal connected to the gate of the PMOS transistor and the collector of the NPN transistor.
CN202220725405.1U 2022-03-30 2022-03-30 Switching circuit Active CN216981880U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202220725405.1U CN216981880U (en) 2022-03-30 2022-03-30 Switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202220725405.1U CN216981880U (en) 2022-03-30 2022-03-30 Switching circuit

Publications (1)

Publication Number Publication Date
CN216981880U true CN216981880U (en) 2022-07-15

Family

ID=82340620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202220725405.1U Active CN216981880U (en) 2022-03-30 2022-03-30 Switching circuit

Country Status (1)

Country Link
CN (1) CN216981880U (en)

Similar Documents

Publication Publication Date Title
CN101783663A (en) Controllable on/off circuit
CN103576816B (en) Switching on and shutting down control circuit
CN203982116U (en) A kind of switching on and shutting down control circuit of electronic equipment
CN216751719U (en) Multi-key awakening identification circuit and electronic equipment
CN102136791A (en) Power supply control circuit
CN216981880U (en) Switching circuit
CN218958613U (en) Low-power consumption power supply circuit, low-power consumption system and electronic equipment
CN205142167U (en) Time delay outage reset circuit
CN218675973U (en) Output power supply circuit and electronic equipment that intelligence was switched
CN203522713U (en) Key control system for power supply system for single battery
CN110888518A (en) Control system and method of standby power system
CN211742096U (en) Electrifying delay circuit, mainboard battery voltage detection circuit, server mainboard and CPLD
CN201584954U (en) Controllable switching-on and shutting-down circuit
CN211478928U (en) Power control circuit and robot
CN111797054B (en) SOC button switch detection circuit and SOC system
CN216979622U (en) Display control circuit and display
CN115664874B (en) Switching device and method suitable for home gateway
CN113054967A (en) Control circuit and method for startup and shutdown
CN207689874U (en) Microcontroller automatic shutdown circuitry
CN112799496A (en) Zero-power-consumption standby control device, method and system for computer
CN211603893U (en) Low standby energy efficiency control circuit and hairdressing product
CN110888828A (en) Data interface multiplexing control circuit
CN210380291U (en) Power supply circuit capable of automatically detecting turn-off
CN219938400U (en) Power supply circuit, scanner host and scanner assembly
CN212411151U (en) Power-on reset protection circuit of chip, control device and household appliance

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant