CN220290066U - Program-controlled startup and shutdown circuit capable of being forced to shutdown - Google Patents

Program-controlled startup and shutdown circuit capable of being forced to shutdown Download PDF

Info

Publication number
CN220290066U
CN220290066U CN202321657065.4U CN202321657065U CN220290066U CN 220290066 U CN220290066 U CN 220290066U CN 202321657065 U CN202321657065 U CN 202321657065U CN 220290066 U CN220290066 U CN 220290066U
Authority
CN
China
Prior art keywords
pmos tube
key
electrode
resistor
singlechip
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
CN202321657065.4U
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.)
Guangzhou Raydose Medical Technology Co ltd
Original Assignee
Guangzhou Raydose Medical 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 Guangzhou Raydose Medical Technology Co ltd filed Critical Guangzhou Raydose Medical Technology Co ltd
Priority to CN202321657065.4U priority Critical patent/CN220290066U/en
Application granted granted Critical
Publication of CN220290066U publication Critical patent/CN220290066U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

The utility model provides a program-controlled startup and shutdown circuit capable of being forced to shutdown, which comprises PMOS (P-channel metal oxide semiconductor) transistors Q1 and Q2 and a capacitor C1; the switch KEY S1 is connected with a KEY_INT pin of the singlechip; the switch KEY S1 is also connected with the source electrode of the PMOS tube Q1, the grid electrode of the PMOS tube Q1 is connected with the collector electrode of the triode Q3, and the base electrode of the triode Q3 is connected with the KEY_ON pin of the singlechip; the resistor R4 and the diode D3 are also connected with the drain electrode of the PMOS tube Q2, and the source electrode of the PMOS tube Q2 is connected with the power input end VIN; the grid electrode of the PMOS tube Q2 is connected with the KEY_Power pin of the singlechip, and a capacitor C1 is further connected between the grid electrode and the source electrode of the PMOS tube Q2. The utility model realizes the startup and shutdown by detecting whether the key is pressed or not and switching on or switching off the corresponding control triode Q3; when the key is pressed for a long time, Q2 is turned on, Q1 is turned off, and the system is forced to be shut down.

Description

Program-controlled startup and shutdown circuit capable of being forced to shutdown
Technical Field
The utility model relates to the technical field of switching circuits, in particular to a program-controlled switching circuit capable of being forced to be turned off.
Background
In the prior art, in order to prevent a user from touching an on-off key by mistake to cause the device to be turned on or off by mistake, the prior art generally solves the technical problem by adding an on-off delay mode.
At present, a method of integrating a single integrated packaging chip with a peripheral control circuit is commonly used, however, the integrated packaging chip has higher cost, the chip is not programmable, and the delay time is not adjustable; moreover, once the control chip fails, the system cannot be shut down, and the reliability is low; therefore, the existing designs do not meet low cost design requirements and reliability is not stable enough.
Disclosure of Invention
Aiming at the defects of the prior art, the utility model provides a program-controlled startup and shutdown circuit capable of being forced to shutdown.
The technical scheme of the utility model is as follows: a program-controlled startup and shutdown circuit capable of being forced to shutdown comprises a PMOS tube Q1, a PMOS tube Q2, a triode Q3, a switch key S1, a singlechip and a capacitor C1;
one end of the switch KEY S1 is grounded to GND, and the other end of the switch KEY S1 is connected with a KEY_INT pin of the singlechip through a diode D8;
the other end of the switch key S1 is also connected with the source electrode of the PMOS tube Q1 through a resistor R3, and the drain electrode of the PMOS tube Q1 is grounded GND through the resistor R1;
the grid electrode of the PMOS tube Q1 is connected with the collector electrode of the triode Q3 through a resistor R5, and the base electrode of the triode Q3 is connected with the KEY_ON pin of the singlechip through a resistor R7; the emitter of the triode Q3 is grounded GND;
the source electrode of the PMOS tube Q1 is also connected with a switch key S1 through a resistor R4, a diode D3 and a resistor R2;
the resistor R4 and the diode D3 are also connected with the drain electrode of the PMOS tube Q2, and the source electrode of the PMOS tube Q2 is connected with the power input end VIN;
the grid electrode of the PMOS tube Q2 is connected with a KEY_Power pin of the singlechip, and a capacitor C1 is further connected between the grid electrode and the source electrode of the PMOS tube Q2.
Preferably, the drain of the PMOS transistor Q1 is further connected to the power input terminal VIN, and the source of the PMOS transistor Q1 is further connected to the power output terminal Vout.
Preferably, a resistor R6 is further connected between the base and the emitter of the triode Q3.
Preferably, the key_power pin of the singlechip is connected with the gate of the PMOS transistor Q2 through a resistor R8.
Preferably, the key_power pin of the singlechip is connected with the gate of the PMOS transistor Q2 through a diode D5.
Preferably, the model of the singlechip is, but not limited to, STM32F103C8T6.
Preferably, the switch button S1 and the resistor R3 are also connected to a key_power pin of the singlechip.
The beneficial effects of the utility model are as follows:
1. the delay time of the long-time press ON/off is controlled by adjusting the time difference of the single chip microcomputer for detecting the KEY_INT level change and the KEY_ON pin level change; the utility model realizes the startup and shutdown by detecting whether the key is pressed or not and switching on or switching off the corresponding control triode Q3; when the key is pressed for a long time, Q2 is turned on, Q1 is turned off, and the system is forced to be shut down;
2. according to the utility model, the time of forced shutdown can be set by adjusting the capacitance value of the capacitor C1 and the resistance value of the resistor R8, the switch key S1 is pressed for a long time, the capacitor C1 is continuously discharged through the resistor R8, the grid voltage of the PMOS tube Q2 is reduced to a certain value and then reaches the conduction threshold value of the PMOS tube Q2, the Q2 is conducted, the Q1 is cut off, and the system is forced to be powered off and shut down;
drawings
Fig. 1 is a circuit diagram of the present utility model.
Detailed Description
The following is a further description of embodiments of the utility model, taken in conjunction with the accompanying drawings:
as shown in fig. 1, the embodiment provides a program control startup and shutdown circuit capable of forced shutdown, which comprises a PMOS transistor Q1, a PMOS transistor Q2, a triode Q3, a switch button S1, a singlechip and a capacitor C1;
one end of the switch KEY S1 is grounded to GND, and the other end of the switch KEY S1 is connected with a KEY_INT pin of the singlechip through a diode D8;
the other end of the switch key S1 is also connected with the source electrode of the PMOS tube Q1 through a resistor R3, and the drain electrode of the PMOS tube Q1 is grounded GND through the resistor R1;
the grid electrode of the PMOS tube Q1 is connected with the collector electrode of the triode Q3 through a resistor R5, and the base electrode of the triode Q3 is connected with the KEY_ON pin of the singlechip through a resistor R7; the emitter of the triode Q3 is grounded GND;
the source electrode of the PMOS tube Q1 is also connected with a switch key S1 through a resistor R4, a diode D3 and a resistor R2;
the resistor R4 and the diode D3 are also connected with the drain electrode of the PMOS tube Q2, and the source electrode of the PMOS tube Q2 is connected with the power input end VIN;
the grid electrode of the PMOS tube Q2 is connected with a KEY_Power pin of the singlechip, and a capacitor C1 is further connected between the grid electrode and the source electrode of the PMOS tube Q2.
Preferably, the drain of the PMOS transistor Q1 is further connected to the power input terminal VIN, and the source of the PMOS transistor Q1 is further connected to the power output terminal Vout.
As a preferred embodiment, a resistor R6 is further connected between the base and the emitter of the triode Q3.
As the preferred embodiment, the KEY_Power pin of the singlechip is connected with the grid electrode of the PMOS tube Q2 through a resistor R8.
As the preferred embodiment, the KEY_Power pin of the singlechip is connected with the grid electrode of the PMOS tube Q2 through a diode D5.
As preferable in this embodiment, the switch button S1 and the resistor R3 are connected to a key_power pin of the singlechip.
As the preferred model of the embodiment, the model of the singlechip is STM32F103C8T6.
Working principle:
when the switch KEY S1 is pressed, the PMOS tube Q1 is conducted, the whole circuit is powered, after the key_INT pin of the singlechip detects that the switch KEY S1 is pressed for a period of time, the key_ON pin of the singlechip is controlled to output a high level, and the triode Q3 and the PMOS tube Q1 are conducted, at the moment, the switch KEY S1 is released, and the system is powered ON;
when the key_INT pin of the singlechip detects that the switch KEY S1 is pressed for a period of time after the switch KEY S1 is pressed again, controlling the key_ON pin to output a low level, loosening the switch KEY S1 at the moment, cutting off the PMOS tube Q1, and powering off the system; the delay time of the long-time press switch can be controlled by adjusting the time difference of the single chip microcomputer for detecting the KEY_INT level change and the KEY_ON pin level change;
when the system is powered ON and started, but the SCM program runs off, when the control of the KEY_INT and KEY_ON pins fails, the switch KEY S1 is pressed for a long time, the capacitor C1 is continuously discharged through the R8 resistor, the grid voltage of the PMOS tube Q2 is reduced to a certain value and then reaches the conduction threshold value of the PMOS tube Q2, the Q2 is conducted, the Q1 is cut off, and the system is powered off and shut down forcedly; releasing the switch button S1, rapidly charging the capacitor C1 through the diode D5, increasing the voltage of the grid electrode of the PMOS tube Q2, cutting off the PMOS tube Q2, and recovering the circuit system to be normal; the forced shutdown time can be set by adjusting the capacitance value of the capacitor C1 and the resistance value of the resistor R8.
The foregoing embodiments and description have been provided merely to illustrate the principles and best modes of carrying out the utility model, and various changes and modifications can be made therein without departing from the spirit and scope of the utility model as defined in the appended claims.

Claims (7)

1. A program-controlled startup and shutdown circuit capable of being forced to shutdown is characterized in that: the capacitor comprises a PMOS tube Q1, a PMOS tube Q2, a triode Q3, a switch key S1, a singlechip and a capacitor C1;
one end of the switch KEY S1 is grounded to GND, and the other end of the switch KEY S1 is connected with a KEY_INT pin of the singlechip through a diode D8;
the other end of the switch key S1 is also connected with the source electrode of the PMOS tube Q1 through a resistor R3, and the drain electrode of the PMOS tube Q1 is grounded GND through the resistor R1;
the grid electrode of the PMOS tube Q1 is connected with the collector electrode of the triode Q3 through a resistor R5, and the base electrode of the triode Q3 is connected with the KEY_ON pin of the singlechip through a resistor R7; the emitter of the triode Q3 is grounded GND;
the source electrode of the PMOS tube Q1 is also connected with a switch key S1 through a resistor R4, a diode D3 and a resistor R2;
the resistor R4 and the diode D3 are also connected with the drain electrode of the PMOS tube Q2, and the source electrode of the PMOS tube Q2 is connected with the power input end VIN;
the grid electrode of the PMOS tube Q2 is connected with a KEY_Power pin of the singlechip, and a capacitor C1 is further connected between the grid electrode and the source electrode of the PMOS tube Q2.
2. The program-controlled startup and shutdown circuit capable of being forced shutdown according to claim 1, wherein: the drain electrode of the PMOS tube Q1 is also connected with the power input end VIN, and the source electrode of the PMOS tube Q1 is also connected with the power output end Vout.
3. The program-controlled startup and shutdown circuit capable of being forced shutdown according to claim 1, wherein: and a resistor R6 is also connected between the base electrode and the emitter electrode of the triode Q3.
4. The program-controlled startup and shutdown circuit capable of being forced shutdown according to claim 1, wherein: and a KEY_Power pin of the singlechip is connected with the grid electrode of the PMOS tube Q2 through a resistor R8.
5. The program-controlled startup and shutdown circuit capable of being forced shutdown according to claim 1, wherein: and a KEY_Power pin of the singlechip is connected with the grid electrode of the PMOS tube Q2 through a diode D5.
6. The program-controlled startup and shutdown circuit capable of being forced shutdown according to claim 1, wherein: and the switch KEY S1 and the resistor R3 are also connected with a KEY_Power pin of the singlechip.
7. The program-controlled startup and shutdown circuit capable of forced shutdown according to claim 6, wherein: the model of the singlechip is but not limited to STM32F103C8T6.
CN202321657065.4U 2023-06-28 2023-06-28 Program-controlled startup and shutdown circuit capable of being forced to shutdown Active CN220290066U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202321657065.4U CN220290066U (en) 2023-06-28 2023-06-28 Program-controlled startup and shutdown circuit capable of being forced to shutdown

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202321657065.4U CN220290066U (en) 2023-06-28 2023-06-28 Program-controlled startup and shutdown circuit capable of being forced to shutdown

Publications (1)

Publication Number Publication Date
CN220290066U true CN220290066U (en) 2024-01-02

Family

ID=89329793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202321657065.4U Active CN220290066U (en) 2023-06-28 2023-06-28 Program-controlled startup and shutdown circuit capable of being forced to shutdown

Country Status (1)

Country Link
CN (1) CN220290066U (en)

Similar Documents

Publication Publication Date Title
WO2021223139A1 (en) Power on/off control device and electronic equipment
CN212183126U (en) Reverse connection prevention protection circuit with soft start
CN104202029A (en) Single-button power-on and power-off circuit and head-wearing display device
CN210742886U (en) Startup and shutdown circuit
CN220290066U (en) Program-controlled startup and shutdown circuit capable of being forced to shutdown
CN210780130U (en) Power-off control circuit
CN213027985U (en) One-key switching circuit
CN217307659U (en) Key control circuit, intelligent door lock and intelligent door
CN116191880A (en) Bootstrap driven switching power supply power-off control circuit
CN213879789U (en) Switch holding circuit with high integration level
CN106484064B (en) Power supply control circuit of singlechip system
CN216387790U (en) Switching on and shutting down circuit and electrical equipment
CN215734211U (en) Circuit for realizing short-press startup of financial equipment based on discrete components
CN112737558B (en) Multifunctional key switch circuit for electronic product
CN112596448B (en) Control circuit and electronic device
CN218298799U (en) Single-chip microcomputer power supply control circuit with zero standby power consumption
CN218868211U (en) Time delay reset control circuit
CN116111713B (en) Deadlock relieving circuit, power supply switching circuit and electronic equipment
CN220208212U (en) Uninterruptible power mode switching circuit based on single key
CN210899111U (en) Automatic shutdown circuit of battery power supply equipment
CN216352197U (en) Manual reset power-down prevention circuit and electronic equipment
CN216118434U (en) Medical electronic instrument switch circuit
CN212627211U (en) Power supply control circuit
CN212649433U (en) Switching circuit for rail transit equipment
CN218298798U (en) Electronic switch circuit with forced shutdown function

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant