Switching circuit and electronic equipment
By introducing voltage-dividing branch circuits and control branch circuits into the switching circuit, the problem of easy damage to the main control chip in the D flip-flop switch circuit is solved, achieving higher reliability.
Patent Information
- Application Number
- CN202421574766.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2034-07-04
AI Technical Summary
The existing D flip-flop switch circuit can easily cause the main control chip voltage to be too high and damage the chip at high levels.
By introducing a voltage divider into the switching circuit, the voltage value collected by the main control chip is reduced, and the output signal of the flip-flop is adjusted through the control branch to avoid excessive voltage damage to the chip.
It effectively avoids damage to the main control chip caused by fluctuations in the output value of the power supply voltage, and improves the reliability of the switching circuit.
Smart Images

Figure CN222916009U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of control circuits, and in particular to a switch circuit and an electronic device. Background Art
[0002] The existing D flip-flop switch circuit provides a logic signal through an external switch, which makes the D flip-flop output a high level when turned on, enabling the external power supply; when turned off, the logic signal state changes, making the output of the D flip-flop become a low level, turning off the external power supply. For small electrical appliances, when in use, the main control chip determines whether the switch is pressed based on the pin level of the D flip-flop. However, due to the fluctuation of the output value of the battery or power supply voltage connected to the switch of small electrical appliances, it is easy for the voltage on the pin to be higher than the voltage of the main control chip when the voltage is high, causing damage to the chip. Utility Model Content
[0003] The present application mainly provides a switch circuit and an electronic device to solve the problem that the main control chip is easily damaged.
[0004] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a switching circuit, the switching circuit comprising: a switching signal input terminal; a trigger, the clock terminal of the trigger is connected to the switching signal input terminal, and the output terminal of the trigger is used to connect to a controlled power supply; a voltage divider branch, the first end of the voltage divider branch is connected to the switching signal input terminal; a control branch, connected to the preset signal terminal of the trigger, used to adjust the preset signal of the trigger to regulate the output signal of the output terminal of the trigger; a main control chip, the ADC acquisition terminal of the main control chip is connected to the second end of the voltage divider branch to collect the voltage divider signal, and the output terminal of the main control chip is connected to the control branch; wherein the main control chip compares the collected voltage divider signal with a preset voltage threshold, so that the control branch controls the preset signal to switch between a first level and a second level, the first level enables the output terminal of the trigger to enable the controlled power supply, and the second level enables the output terminal of the trigger to stop enabling the controlled power supply; the preset voltage threshold is less than the working voltage of the main control chip.
[0005] By setting the voltage division branch, the position where the main control chip collects the signal is adjusted so that the main control chip can collect the ADC parameters of the branch after voltage division, thereby avoiding damage to the main control chip due to excessive high-level voltage.
[0006] In some embodiments, the voltage divider branch includes a first resistor, a second resistor and a third resistor; the first end of the first resistor is connected to the switch signal input end, the second end of the first resistor is connected to the first end of the second resistor, the second end of the first resistor is also connected to the first end of the third resistor, the second end of the second resistor is connected to the ADC acquisition end of the main control chip, and the second end of the third resistor is grounded.
[0007] By setting a voltage dividing resistor on the voltage dividing branch, the voltage value collected by the main control chip is reduced, thereby preventing the main control chip from being damaged by fluctuating voltage.
[0008] In some embodiments, the first resistor and the third resistor are adjustable resistors.
[0009] By setting an adjustable resistor, the circuit can be adapted to the main control chip with different operating voltages by only adjusting the resistance value of the voltage divider resistor. The resistor value can also be directly adjusted when the main control chip adjusts the judgment threshold, avoiding replacing resistors or reproducing the circuit, reducing production costs and improving the adaptability of the circuit.
[0010] In some embodiments, the control branch includes a fourth resistor, a fifth resistor, a first capacitor and a first switching device; the first end of the fourth resistor is connected to the output end of the main control chip, the second end of the fourth resistor is connected to the first end of the first switching device, the second end of the fourth resistor is also connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to the second end of the first switching device, the third end of the first switching device is connected to the preset signal end of the trigger, the third end of the first switching device is also connected to the first end of the first capacitor, and the second end of the first capacitor is grounded.
[0011] By setting the control input terminal, the switch unit can obtain the logic control signal of the main control chip to control the switch device to be turned on or off.
[0012] In some embodiments, the first switching device is an N-MOS.
[0013] By selecting N-MOS as the switching device, the main control chip can use a simple logic level signal to control the conduction or disconnection of the branch, thereby reversing the level state of the trigger preset signal terminal.
[0014] In some embodiments, the switching circuit also includes: a first power supply branch, connected between the clock end of the trigger and the switching signal input end, for providing a first voltage to the voltage divider branch; a second power supply branch, the first end of the second power supply branch is connected to the power supply end of the trigger, for providing a second voltage to the trigger; wherein the clock end of the trigger is controlled to modulate the power supply state of the first power supply branch, the first power supply branch supplies power when the trigger output end outputs a first level, and the first power supply branch stops supplying power when the trigger output end outputs a second level.
[0015] By controlling the output terminal to output a control signal of a D flip-flop, the power supply of the external power system to the appliance can be turned on or off.
[0016] In some embodiments, the first power supply branch includes a first diode, a sixth resistor, a seventh resistor and a second capacitor; the cathode of the first diode is connected to the first end of the sixth resistor, the cathode of the first diode is also connected to the first end of the seventh resistor, the cathode of the first diode is also connected to the first end of the second capacitor, the second end of the sixth resistor is connected to the switching signal input end, the second end of the seventh resistor is connected to the second end of the second capacitor, and the second end of the second capacitor is grounded.
[0017] In some embodiments, the second power supply branch includes a third capacitor, a fourth capacitor, an eighth resistor and a ninth resistor; the first end of the third capacitor, the first end of the fourth capacitor, the first end of the eighth resistor and the first end of the ninth resistor are commonly connected to the trigger power supply terminal, the second end of the third capacitor is grounded, the second end of the fourth capacitor and the second end of the eighth resistor are commonly connected to the reset signal terminal of the trigger, and the second end of the ninth resistor is connected to the preset signal terminal of the trigger.
[0018] In some embodiments, the switching circuit also includes a tenth resistor and an eleventh resistor; the first end of the tenth resistor is connected to the output end of the trigger, and the second end of the tenth resistor is connected to the controlled power supply; the first end of the eleventh resistor is connected to the control input end of the trigger, and the second end of the eleventh resistor is grounded.
[0019] In order to solve the above technical problem, the present application also provides an electronic device, which includes the switching circuit as described above.
[0020] The beneficial effect of the present application is: different from the prior art, the present application discloses a switching circuit and an electronic device, which changes the signal collection position of the main control chip in the trigger switch circuit, changes the original output level signal to the main control chip to the output ADC signal to the main control chip, and sets the voltage division to avoid damage to the main control chip due to fluctuations in the power supply voltage output value, thereby improving the reliability of the switching circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0022] Figure 1 is a structural schematic diagram of a first embodiment of a switch circuit provided by the present application;
[0023] Figure 2 is a structural schematic diagram of a second embodiment of a switch circuit provided in the present application;
[0024] Figure 3 is a structural schematic diagram of a third embodiment of a switch circuit provided in the present application;
[0025] Figure 4 It is a structural schematic diagram of a fourth embodiment of the switch circuit provided in the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] The terms "first", "second", "third" in the embodiments of the present application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0028] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0029] See also Figure 1 , Figure 1 1 is a schematic diagram of the structure of the switch circuit embodiment 1 provided in the present application. The switch circuit 10 comprises: a switch signal input terminal 15 and a trigger 13. The clock terminal CLK of the trigger 13 is connected to the switch signal input terminal 15. The output terminal Q of the trigger 13 is used to connect to a controlled power supply.
[0030] The voltage dividing branch 11 has a first end connected to the switch signal input end 15 .
[0031] The control branch 14 is connected to the preset signal terminal PRE of the trigger 13 and is used to adjust the preset signal of the trigger 13 to regulate the output signal of the output terminal Q of the trigger 13 .
[0032] A main control chip 12, an ADC acquisition end of the main control chip 12 is connected to the second end of the voltage divider branch 11 to collect a voltage divider signal, and an output end of the main control chip 12 is connected to a control branch 14; wherein, the main control chip 12 compares the collected voltage divider signal with a preset voltage threshold, so that the control branch 14 controls the preset signal to switch between a first level and a second level, the first level enables the output end Q of the trigger 13 to enable the controlled power supply, and the second level enables the output end Q of the trigger 13 to stop enabling the controlled power supply; the preset voltage threshold is less than the operating voltage of the main control chip.
[0033] The switch circuit 10 provided in the present application can be applied to small electrical appliances, for example, small electrical appliances can be medical devices or small household appliances.
[0034] The switch signal input terminal 15 is used to connect to the pins of a mechanical switch, a micro switch, a trigger button or an infrared remote control switch, etc., so as to receive switch signal control of the above-mentioned various switches.
[0035] The trigger 13 is a D flip-flop (Data Flip-Flop, DFF), which is a basic sequential logic element and is widely used in digital electronics and computer engineering. It is mainly used to store binary data and update its state under the action of a specific clock signal.
[0036] The voltage dividing branch 11 is used for voltage dividing to reduce the collection voltage of the main control chip 12 to avoid the risk of damage to the main control chip 12 due to the high level input from the switch signal input terminal 15 exceeding the working voltage of the main control chip 12.
[0037] The main control chip 12 is the control chip on the product to which the switch circuit 10 is applied. By reusing the control chip in small electrical products to control the operation of the trigger 13, the cost of a chip that converts a fixed voltage to power the trigger can be relatively saved. Therefore, the material cost of the switch circuit 10 provided in this application is lower.
[0038] When the switch connected to the switch signal input terminal 15 is in a closed state, the preset signal terminal PRE of the trigger 13 stores a first level. When the switch connected to the switch signal input terminal 15 is pressed and switched to an open state, the clock terminal CLK of the trigger 13 obtains a rising edge signal, the trigger 13 is triggered, and the output terminal Q of the trigger 13 outputs a first level signal identical to the preset signal terminal PRE. The first level enables the output terminal Q of the trigger to enable the controlled power supply. At this time, the appliance completes the startup power supply, and the voltage divider branch 11 obtains a low level state.
[0039] When the appliance is in the on state and the switch connected to the switch signal input terminal 15 is in the on state, the voltage-dividing branch 11 acquires a high level state, and the voltage-dividing branch 11 provides an ADC signal that is converted after voltage division and can be collected by the main control chip 12, and the maximum voltage of the ADC signal does not exceed the working voltage of the main control chip 12; after collecting the ADC signal, the main control chip 12 determines whether the current voltage is greater than the preset voltage threshold, if it is greater than the voltage threshold, it is deemed to be pressed, and if it is not greater than the voltage threshold, it is deemed not to be pressed; if the judgment result is that the switch is pressed, the output terminal of the main control chip 12 outputs a logic control signal to the control branch, so that the control branch 14 is turned on, and the level signal of the preset signal terminal PRE of the trigger 15 is set from the first level to the second level, and the output terminal Q of the trigger 13 outputs a second level signal that is the same as the preset signal terminal PRE, and the second level signal causes the output terminal Q of the trigger to stop enabling the controlled power supply; at this time, the appliance completes shutdown and power-off.
[0040] Furthermore, after the power is turned off, the control branch 14 loses the logic control signal from the main control chip 12, so that the control branch 14 is disconnected, and the level signal of the preset signal terminal PRE of the trigger 13 is set from the second level to the first level, so that the first level is output when the trigger is triggered next time.
[0041] The first level and the second level are logic signals with opposite states. Optionally, the first level is a high level and the second level is a low level; or the first level is a low level and the second level is a high level. The setting of the voltage threshold can be adjusted according to the working voltage of the main control chip 12, for example, the voltage threshold is set to 45%, 50% or 60% of the working voltage of the main control chip 12; it can also be set to a voltage value that can distinguish between high and low levels, such as 2.2V, 2.3V or 2.4V. Of course, these voltage thresholds are all less than the working voltage of the main control chip 12.
[0042] The present application can save hardware costs relatively by reusing the main control chip 12 in small electrical appliances and adjusting the level of the preset signal terminal of the trigger 13 by controlling the branch 14. In addition, a voltage divider branch 11 is set between the switch signal input terminal 15 and the main control chip 12 to adjust the position of the main control chip 12 to collect signals, so that the main control chip 12 can collect the branch ADC parameters after voltage division, thereby avoiding damage to the main control chip 12 due to excessive high-level voltage at the switch signal input terminal 15.
[0043] See also Figure 2 , Figure 2 It is a structural schematic diagram of the second embodiment of the switch circuit provided in this application.
[0044] The voltage dividing branch 11 includes a first resistor R1, a second resistor R2 and a third resistor R3; the first end of the first resistor R1 is connected to the switch signal input end, the second end of the first resistor R1 is connected to the first end of the second resistor R2, the second end of the first resistor R1 is also connected to the first end of the third resistor R3, the second end of the second resistor R2 is connected to the ADC acquisition end of the main control chip, and the second end of the third resistor R3 is grounded.
[0045] When a high level input is input to the switch signal input terminal 15, the first resistor R1 first steps down the level signal entering the voltage divider branch 11, and then the third resistor R3 divides the voltage on the branch where the second resistor R2 is located, thereby reducing the voltage on the branch where the second resistor R2 is located, so that the voltage collected by the ADC collection terminal of the main control chip 12 will not be higher than its working voltage.
[0046] The second resistor R2 is used to adjust the current output from the voltage dividing branch to the main control chip 12 , which is beneficial to protecting the main control chip 12 .
[0047] The first resistor R1 and the third resistor R3 are adjustable resistors.
[0048] Optionally, the first resistor R1 and the third resistor R3 may also be fixed-value resistors.
[0049] By setting a voltage-dividing resistor on the voltage-dividing branch, the voltage value collected by the main control chip is reduced, thereby preventing the main control chip from being damaged due to excessive voltage; by setting an adjustable resistor, it is only necessary to adjust the resistance value of the voltage-dividing resistor to enable the circuit to adapt to main control chips with different operating voltages, and the resistor value can also be directly adjusted when the main control chip adjusts the judgment threshold, avoiding replacing resistors or reproducing the circuit, reducing production costs, and improving the adaptability of the circuit.
[0050] The control branch 14 includes a fourth resistor R4, a fifth resistor R5, a first capacitor C1 and a first switch device M1; the first end of the fourth resistor R4 is connected to the output end of the main control chip 12, the second end of the fourth resistor R4 is connected to the first end of the first switch device M1, the second end of the fourth resistor R4 is also connected to the first end of the fifth resistor R5, the second end of the fifth resistor R5 is connected to the second end of the first switch device M1, the second end of the first switch device M1 is grounded, the third end of the first switch device M1 is connected to the preset signal end of the trigger, the third end of the first switch device M1 is also connected to the first end of the first capacitor C1, and the second end of the first capacitor C1 is grounded.
[0051] Optionally, the first switching device M1 is an N-MOS, a transistor or a relay.
[0052] When the control branch 14 receives the control logic signal from the main control chip 12, the N-MOS tube is turned on internally under control, so that the preset signal of the D flip-flop changes, and the flip-flop 13 can output the corresponding correct signal when triggered.
[0053] For example, when the output end of the main control chip 12 outputs a high-level signal, the second and third ends of the N-MOS are turned on, the preset signal end of the trigger 13 is grounded, and the preset signal is reversed from a high level to a low level. At this time, the output end Q of the trigger 13 outputs a low-level signal; when the output end of the main control chip 12 stops outputting a signal, the second and third ends of the N-MOS are disconnected, the preset signal end of the trigger 13 is connected to a high-level second voltage, and the preset signal is reversed from a low level to a high level. When the trigger 13 is triggered next time, the output end Q of the trigger 13 outputs a high-level signal.
[0054] The fourth resistor R4 and the fifth resistor R5 are used to adjust the voltage value of the branch where they are located, so that the logic signal adjusts the first switch device M1 to enable it to work normally and turn on or off the control branch 14.
[0055] N-MOS is a MOSFET type transistor, and its working principle is based on N-type channel. N-MOS transistor consists of N-type channel, gate and drain, and has the advantages of low static power consumption, high switching speed and good linear characteristics. When a positive voltage is applied to the gate of N-MOS, an electric field is formed in N-MOS to turn on the N-type channel, thereby realizing the on state of the device.
[0056] By setting the control input terminal, the switch unit can obtain the logic control signal of the main control chip, control the switch device to be turned on or off, and then reverse the level of the preset signal terminal PRE of the trigger 13.
[0057] Optionally, the switch circuit 10 further includes:
[0058] The first power supply branch 16 is connected between the clock terminal CLK of the trigger 13 and the switch signal input terminal 15 , and is used to provide a first voltage to the voltage dividing branch 11 .
[0059] The second power branch 17 has a first end connected to the power supply end VCC of the trigger 13 , and is used to provide a second voltage to the trigger 13 .
[0060] The clock terminal CLK of the trigger 13 is controlled to modulate the power supply state of the first power branch 16. When the output terminal of the trigger 13 outputs a first level, the first power branch 16 supplies power. When the output terminal CLK of the trigger 13 outputs a second level, the first power branch 16 stops supplying power.
[0061] Further, see Figure 3 , Figure 3 It is a structural schematic diagram of the third embodiment of the switch circuit provided in the present application.
[0062] The first power supply branch 16 includes a first diode D1, a sixth resistor R6, a seventh resistor R7 and a second capacitor C2; the cathode of the first diode D2 is connected to the first end of the sixth resistor R6, the cathode of the first diode D1 is also connected to the first end of the seventh resistor R7, the cathode of the first diode D1 is also connected to the first end of the second capacitor C2, the second end of the sixth resistor R6 is connected to the switch signal input terminal 15, the second end of the seventh resistor R7 is connected to the second end of the second capacitor C2, and the second end of the second capacitor C2 is grounded.
[0063] When the first power supply branch 16 obtains the input first voltage, the current flows unidirectionally through the first diode D1, a part of which is provided to the voltage divider branch 11 as the basic voltage, and the other part is used to charge the second capacitor C2, so that the second capacitor C2 can continue to provide sufficient voltage for the branch without external power supply.
[0064] The first diode D1 is used to ensure unidirectional transmission of the current in the branch where it is located, so as to prevent the input current of the switch signal input terminal 15 from flowing back into the external power supply to cause a short circuit and damage the power supply.
[0065] The sixth resistor R6 is used to adjust the voltage from the switch signal input terminal 15 so that the voltage combined with the first voltage is more suitable for the clock terminal CLK of the trigger 13 .
[0066] The seventh resistor is connected in parallel with the second capacitor C2 and is used for adjusting the voltage across the second capacitor C2 so that the second capacitor C2 can be charged and discharged normally.
[0067] The second power supply branch 17 includes a third capacitor C3, a fourth capacitor C4, an eighth resistor R8 and a ninth resistor R9; a first end of the third capacitor C3, a first end of the fourth capacitor C4, a first end of the eighth resistor R8 and a first end of the ninth resistor R9 are commonly connected to the power supply terminal VCC of the trigger 13, a second end of the third capacitor C3 is grounded, a second end of the fourth capacitor C4 and a second end of the eighth resistor R8 are commonly connected to the reset signal terminal CLR of the trigger 13, and a second end of the ninth resistor R9 is connected to the preset signal terminal PRE of the trigger 13.
[0068] When the second power branch 17 obtains the input second voltage, the third capacitor C3 and the fourth capacitor C4 begin to charge and store energy, so that the third capacitor C3 and the fourth capacitor C4 are used to filter the power supply line of the second power branch 17 to prevent interference and improve the output quality of the second power branch 17.
[0069] The eighth resistor R8 is connected in parallel with the fourth capacitor C4 and is used to adjust the voltage across the fourth capacitor C4 so that the fourth capacitor C4 can be charged and discharged normally, thereby achieving a filtering function.
[0070] The ninth resistor R9 is used to adjust the current input from the external controlled power source to the preset signal terminal of the trigger 13 and the first terminal of the first capacitor.
[0071] When the switch circuit is powered on and the first and second power supplies start supplying power, the capacitors in the first power branch 16 and the second power branch 17 are used for circuit filtering, and the resistors are used for adjusting the circuit current.
[0072] See also Figure 4 , Figure 4 It is a structural schematic diagram of the third embodiment of the switch circuit provided in the present application.
[0073] The switching circuit 10 also includes a tenth resistor R10 and an eleventh resistor R11; a first end of the tenth resistor R10 is connected to the output terminal Q of the trigger 13, and a second end of the tenth resistor R10 is connected to a controlled power supply; a first end of the eleventh resistor R11 is connected to the control input terminal D of the trigger 13, and a second end of the eleventh resistor R11 is grounded.
[0074] The tenth resistor R10 is used to adjust the level signal outputted from the output terminal Q of the trigger 13 so that the controlled power supply can be enabled smoothly without damaging the controlled power supply.
[0075] The eleventh resistor R11 is used to adjust the input of the control input terminal D of the trigger 13 .
[0076] The present application also provides an electronic device, which includes the switch circuit as described above. The electronic device can be an independent device or component, or a part of a system circuit.
[0077] When the electronic device is turned on or off, the power supply is controlled by the switch circuit.
[0078] Different from the prior art, the present application provides a switch circuit and electronic device, including: a switch signal input terminal, a trigger, a voltage division branch, a control branch and a main control chip; the main control chip collects the ADC signal on the voltage division branch, determines whether the switch button is pressed, and controls the D trigger to complete the signal inversion; after the D trigger is triggered by the level signal, it outputs a preset signal to control the external controlled power supply. By changing the original output level signal to the main control chip to the output ADC signal to the main control chip, and setting the voltage division, the main control chip is prevented from being damaged due to fluctuations in the power supply voltage output value, thereby improving the reliability of the switch circuit.
[0079] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0080] The circuits provided in the present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0081] In the several embodiments provided in this application, it should be understood that the disclosed circuit structure can be implemented in other ways. For example, the circuit embodiments described above are only illustrative, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not performed.
[0082] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A switching circuit, characterized in that: The switch circuit comprises: Switch signal input terminal; A trigger, wherein a clock terminal of the trigger is connected to the switch signal input terminal, and an output terminal of the trigger is used to connect to a controlled power supply; A voltage dividing branch, a first end of which is connected to the switch signal input end; A control branch, connected to a preset signal terminal of the trigger, for adjusting the preset signal of the trigger to regulate the output signal of the output terminal of the trigger; A main control chip, wherein an ADC acquisition end of the main control chip is connected to the second end of the voltage division branch to collect the voltage division signal, and an output end of the main control chip is connected to the control branch; Among them, the main control chip compares the collected voltage division signal with a preset voltage threshold, so that the control branch controls the preset signal to switch between a first level and a second level, the first level enables the output end of the trigger to enable the controlled power supply, and the second level enables the output end of the trigger to stop enabling the controlled power supply; the preset voltage threshold is less than the operating voltage of the main control chip.
2. The switch circuit according to claim 1, characterized in that: The voltage dividing branch includes a first resistor, a second resistor and a third resistor; The first end of the first resistor is connected to the switch signal input end, the second end of the first resistor is connected to the first end of the second resistor, the second end of the first resistor is also connected to the first end of the third resistor, the second end of the second resistor is connected to the ADC acquisition end of the main control chip, and the second end of the third resistor is grounded.
3. The switch circuit according to claim 2, characterized in that: The first resistor and the third resistor are adjustable resistors.
4. The switch circuit according to claim 1, characterized in that: The control branch includes a fourth resistor, a fifth resistor, a first capacitor and a first switch device; The first end of the fourth resistor is connected to the output end of the main control chip, the second end of the fourth resistor is connected to the first end of the first switching device, the second end of the fourth resistor is also connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to the second end of the first switching device, the third end of the first switching device is connected to the preset signal end of the trigger, the third end of the first switching device is also connected to the first end of the first capacitor, and the second end of the first capacitor is grounded.
5. The switch circuit according to claim 4, characterized in that: The first switch device is N-MOS.
6. The switch circuit according to claim 1, characterized in that: The switch circuit further comprises: A first power supply branch, connected between the clock terminal of the trigger and the switch signal input terminal, for providing a first voltage to the voltage dividing branch; A second power supply branch, a first end of the second power supply branch is connected to the power supply end of the trigger, and is used to provide a second voltage to the trigger; The clock end of the trigger is controlled to modulate the power supply state of the first power branch. When the output end of the trigger outputs a first level, the first power branch supplies power. When the output end of the trigger outputs a second level, the first power branch stops supplying power.
7. The switch circuit according to claim 6, characterized in that: The first power supply branch includes a first diode, a sixth resistor, a seventh resistor and a second capacitor; The cathode of the first diode is connected to the first end of the sixth resistor, the cathode of the first diode is also connected to the first end of the seventh resistor, the cathode of the first diode is also connected to the first end of the second capacitor, the second end of the sixth resistor is connected to the switching signal input end, the second end of the seventh resistor is connected to the second end of the second capacitor, and the second end of the second capacitor is grounded.
8. The switch circuit according to claim 6, characterized in that: The second power supply branch includes a third capacitor, a fourth capacitor, an eighth resistor and a ninth resistor; The first end of the third capacitor, the first end of the fourth capacitor, the first end of the eighth resistor and the first end of the ninth resistor are commonly connected to the power supply terminal of the trigger, the second end of the third capacitor is grounded, the second end of the fourth capacitor and the second end of the eighth resistor are commonly connected to the reset signal terminal of the trigger, and the second end of the ninth resistor is connected to the preset signal terminal of the trigger.
9. The switch circuit according to claim 1, characterized in that: The switch circuit further includes a tenth resistor and an eleventh resistor; A first end of the tenth resistor is connected to the output end of the trigger, and a second end of the tenth resistor is connected to the controlled power supply; A first end of the eleventh resistor is connected to the control input end of the trigger, and a second end of the eleventh resistor is grounded.
10. An electronic device, characterized in that: Comprising a switching circuit as described in any one of claims 1 to 9.