A circuit and method for powering on / off and resetting a medical device.
By designing reset buttons and delayed shutdown circuits in medical equipment, the problems of data loss, hardware damage and misoperation of medical equipment buttons when power is off are solved, the stability and anti-interference ability of the equipment are improved, and a more intelligent system is achieved. and reliable switch and reset functions.
Patent Information
- Application Number
- CN202311465519.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-07
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-11-07
AI Technical Summary
The buttons of existing medical equipment have problems such as data loss, hardware damage, misoperation and insufficient anti-interference ability when power is cut off, which affects the stability and reliability of the equipment.
A switch and reset circuit including a reset button, power circuit, controllable switch circuit, voltage reduction circuit, delay and control circuit and main control circuit are designed. Through delayed shutdown and noise reduction signal stabilization circuit, the system is ensured to be in operation. Perform necessary cleaning and shutdown when shutting down to reduce the impact of misoperation and interference.
It improves the stability and reliability of the reset operation of the device, prevents data damage, reduces the risk of misoperation, and enhances the anti-interference ability, making the power on and off and reset functions more intelligent and convenient.
Smart Images

Figure CN117526915B
Abstract
Description
Technical Field
[0001] The utility model relates to a circuit for turning on / off and resetting a machine and a method thereof, and in particular to a circuit for turning on / off and resetting a medical device and a method thereof, belonging to the field of medical devices. Background Art
[0002] With the continuous advancement of science and technology, the demand for convenience and stability of intelligent medical devices has become increasingly important. In the field of medical equipment, the number of buttons on mechanical equipment is also a component that reflects the convenience and stability of medical equipment, and is also an important component that reflects the degree of intelligence of the equipment. In existing medical equipment, self-locking switches and reset buttons are set separately, and they can be reset by pressing. This type of button has the following defects:
[0003] 1. Data loss risk: In the event of a direct power outage, ongoing tasks and operations may be suddenly interrupted, resulting in the loss of unsaved data. This may have serious consequences for important files, databases, or ongoing calculations;
[0004] 2. Risk of hardware damage: Sudden power outages also increase the risk of damage to hardware components. When the power is not completely turned off, the system may be in an unstable state, and sudden changes in current and voltage may cause stress and overload to electronic equipment;
[0005] 3. Risk of misoperation: Since buttons can be accidentally triggered or briefly touched, the RC reset circuit is susceptible to misoperation, which may cause the system to reset unnecessarily. This will interrupt ongoing tasks or damage data integrity;
[0006] 4. Weak anti-interference ability: The RC reset circuit is sensitive to external noise or interference, such as electromagnetic interference, power supply fluctuations, etc., which may cause the system to reset unexpectedly, thus affecting the reliability of the equipment.
[0007] As medical equipment is currently trending towards miniaturization and multifunctional buttons, how to achieve multiple functions with one switch is an important issue in medical equipment. Summary of the invention
[0008] In view of the risks of data loss, hardware damage and misoperation of existing device buttons, in order to achieve the goal of convenience and stability of intelligent medical devices, the company has carried out optimization of device button functions. The present invention provides a circuit and method for turning on, off and resetting a medical device. Its purpose is to set the delay time of delayed shutdown by software according to actual needs, so as to control the critical delay time. While the system shuts down the running program normally, it performs necessary cleanup and shutdown operations. This helps to maintain the integrity of the file system, prevent data corruption, and ensure that the device has no unfinished background tasks or communications with peripherals when shutting down, thereby improving the stability and reliability of the reset operation.
[0009] The technical solution of the present invention is: a circuit for turning on and off and resetting a medical device, including a reset button, the circuit for turning on and off and resetting the medical device includes a power supply circuit, a controllable switch circuit, a button circuit, a step-down circuit, a delay and control circuit, a reset circuit and a main control circuit, wherein the power supply is respectively connected to the input end of the controllable switch circuit and the button circuit, the output end of the button circuit is respectively connected to the main control circuit, the control end of the controllable switch circuit and the delay reset circuit of the delay and control circuit; the output end of the controllable switch circuit is connected to the step-down circuit, and the step-down circuit is respectively connected to the main end of the main control circuit The control chip, reset circuit and delay and control circuit are connected to the main control chip of the main control circuit and the control terminal 2 of the controllable switch respectively; the reset circuit is connected to the delay and control circuit and the main control chip at the same time; in the delay and control circuit, an inverter 4 is arranged, one end of the inverter 4 is arranged with a noise reduction signal stabilization circuit, and the other end of the inverter 4 is arranged with a delay reset circuit, and the noise reduction signal stabilization circuit includes a PMOS tube 3 and a transistor 4, wherein the base and emitter of the transistor 4 are connected to the IO port MAIN of the main control circuit through a resistor 15 and a resistor 18 respectively. CON pin, the time-delay reset circuit includes transistor 5 and resistor-capacitor circuit 2, wherein the collector of transistor 5 is connected to the REST pin of the main control circuit via resistor 16, transistor 5 is connected to the 5Y terminal of inverter 4 via diode 7 and resistor 17, resistor 10 in resistor-capacitor circuit 2 is connected in parallel with diode 5, one end of resistor-capacitor circuit 2 is connected to the 6A terminal of inverter 4, and the other end of resistor-capacitor circuit 2 is connected to the KEY OPEN pin of the main control circuit;
[0010] Further, the key circuit includes a reset key 1, one end of the reset key 1 is connected to the POWER-IN terminal in the controllable switch circuit via a resistor 5, and the other end of the reset key 1 is connected to the controllable switch circuit and the KEY OPEN terminal or pin in the main control circuit;
[0011] Further, the step-down circuit includes a linear regulator 1 and a linear regulator 2, one end of a capacitor 4 and a capacitor 5 are connected between the two and connected to a power supply voltage 5, the other ends of the capacitor 4 and the capacitor 5 are grounded, a voltage input end of the linear regulator 1 is connected to one end of the capacitor 2 and the capacitor 3 and is also connected to a POWER end, the other ends of the capacitor 2 and the capacitor 3 are grounded, a voltage output end of the linear regulator 2 is connected to one end of the capacitor 1 and the capacitor 6 and is also connected to a power supply voltage, the other ends of the capacitor 1 and the capacitor 6 are grounded;
[0012] Further, the controllable switch circuit includes a PMOS tube and diode 1, diode 2, and diode 3, wherein the input end of diode 1 is connected to the POWER-IN terminal, and the output end is respectively connected to the positive electrode of capacitor 8, one end of resistor 1, and the source of the PMOS tube, the negative electrode of capacitor 8 is grounded, the source of the PMOS tube is connected to the drain and connected to the POWER terminal in the step-down circuit, the other end of resistor 1 is connected to the gate of the PMOS tube, and at the same time is connected to the collector of transistor 2 through resistor 3, the base of transistor 2 is connected to the negative electrodes of diode 2 and diode 3, and is grounded through resistor 8, the emitter of transistor 2 is grounded, and the positive electrodes of diode 2 and diode 3 are respectively connected to the KEYOPEN and MAIN OPEN terminals in the main control circuit through resistor 4 and resistor 6;
[0013] Further, the collector of the transistor 4 of the noise reduction signal stabilization circuit is connected to the gate of the PMOS tube 3, the source of the PMOS tube 3 is connected to the power supply, and the gate is connected to the power supply via the resistor 13, the emitter of the transistor 4 and the other end of the resistor 18 are grounded at the same time, the drain of the PMOS tube 3 is connected to the 1A terminal on the inverter 4 via the diode and one end of the resistor and capacitor circuit 1, the other end of the resistor and capacitor circuit 1 is grounded, and the resistor and capacitor circuit 1 is a capacitor 17 and a resistor 11 connected in parallel;
[0014] Further, the delay reset circuit includes a resistor and capacitor circuit 2, a diode 7 and a transistor 5, the resistor and capacitor circuit 2 includes a capacitor 18 and a resistor 10, one end of the capacitor 18 and the resistor 10 are connected to the 6A terminal of the inverter 4, wherein the other end of the capacitor 18 is grounded, a diode 5 is connected in parallel to the resistor 10, and the other parallel end is connected to the KEY OPEN pin in the main control circuit, and is also connected to a resistor 14; the positive electrode of the diode 7 is connected to the 5Y terminal of the inverter 4, the negative electrode of the diode 7 is connected to the emitter of the transistor 5 via the resistor 17, the collector of the transistor 5 is connected to the RSET pin in the main control circuit via the resistor 16, and the emitter electrode of the transistor 5 is grounded, and the delay reset circuit also includes a capacitor 16, one end of the capacitor 16 is connected to the power supply voltage terminal of the inverter 4, and the negative electrode of the capacitor 16 is grounded;
[0015] Further, the reset circuit includes a diode 4, the diode 4 is connected in parallel with a resistor 9, one end of the parallel circuit is connected to a power supply voltage VCC, the other end of the parallel circuit is connected to a capacitor 15 and is also connected to a RESET pin in the main control circuit, and the other end of the capacitor 15 is grounded;
[0016] Further, the main control circuit includes a main control chip, the main control chip is a single-chip microcomputer STM32F103, a crystal oscillator is arranged between pins 5 and 6 of the single-chip microcomputer STM32F103, two ends of the crystal oscillator are respectively connected to one end of a capacitor ten and a capacitor nine connected in parallel, the other ends of the capacitor ten and the capacitor nine are connected in series with one end of a capacitor twelve and a capacitor eleven connected in parallel, and are simultaneously connected to pin 12 of the single-chip microcomputer STM32F103, and the other ends of the capacitor twelve and the capacitor eleven connected in parallel are simultaneously connected to pins 13 and Resistor seven, wherein the other end of the resistor seven is connected to the power supply voltage; capacitor fourteen is connected in series between pins 18 and 19 of the single-chip computer STM32F103, one end of resistor twelve is connected in series to pin 28 of the single-chip computer STM32F103, and the other end of resistor twelve is grounded; capacitor nineteen is connected in series between pins 31 and 32 of the single-chip computer STM32F103, capacitor thirteen is connected in series between pins 47 and 48, one end of resistor two is connected to pin 60, and the other end of resistor two is grounded, and capacitor seven is connected in series between pins 63 and 64.
[0017] A method for turning on, off and resetting a medical device, using the above-mentioned circuit for turning on, off and resetting a medical device, the turning on, off and resetting methods are as follows:
[0018] 1) After pressing the reset button, the controllable switch circuit is turned on, and power is supplied to the main control chip through the step-down circuit, so that the main control chip enters the working state;
[0019] 2) The IO port MAIN CON in the main control circuit outputs a high level. At this time, the noise reduction signal stabilization circuit in the delay and control circuit works, transistor 4 and PMOS tube 3 are turned on, and the power supply voltage is input to inverter 4. After two inversions, a high level is output to control the conduction of the controllable switch. At this time, no matter whether the reset button 1 is lifted or not, the device is in the power-on state;
[0020] 3) Press the reset button and lift the device to start up normally;
[0021] 4) Once the reset button is pressed and not released for a long time, the delay reset circuit in the delay and control circuit works, transistor 5 is turned on, so that RESET will become a low level, and the main control chip is reset;
[0022] 5) After releasing the reset button, the circuit discharges quickly to ensure that when the button is pressed again, the entire circuit system returns to its initial state;
[0023] 6) Press the reset button again and the device will start up normally;
[0024] 7) When the device is powered on, once the reset button is pressed, the KEY OPEN pin will have a high level output. When the main control chip receives this high level, it will shut down. The main control chip outputs a low level signal, and the left half of the delay and control circuit works. Transistor 4 and PMOS tube 3 are turned on and off, and MAIN OPEN outputs a low level.
[0025] 8) Once the reset button is released, the device is completely powered off and shut down.
[0026] The positive effects of the present invention are as follows: by setting a step-down circuit in the power on / off and reset circuit, the input high voltage can be reduced to the voltage required by the device; by setting a key circuit in the power on / off and reset circuit, the power on / off and reset can be judged according to the length of time the key is pressed; by setting a controllable switch circuit in the power on / off and reset circuit, signal control can be implemented using KEY OPEN and MAIN OPEN, when one of the two signals is at a high level, the transistor 2 is turned on, the gate voltage of the PMOS tube 1 is less than the source voltage, the PMOS tube 1 is turned on, and power is supplied to the device; by setting a delay and control circuit in the power on / off and reset circuit, the noise reduction signal stabilization circuit and the threshold of the inverter 4 can be used during the power on / off to filter out fluctuations caused by various interferences in the circuit, stabilize the switch signal, and increase the anti-interference ability; the forced reset uses the delay reset circuit and the threshold of the inverter 4 to realize the delay of the resistor and capacitor circuit 2, and the reset operation can be realized by long pressing the key; by setting a delay and control circuit in the power on / off and reset circuit, the resistor and capacitor circuit 2 can be delayed by the delay reset circuit and the threshold of the inverter 4. A reset circuit is set, and when the system fails, does not respond, or needs to be completely restarted, the software and hardware can be quickly reset by pressing the reset button; by setting the main control circuit in the power on / off and reset circuit, in addition to the overall control of the medical device, it can also play a control role, and mainly records the time when the button is pressed during the power on / off and reset, and controls the controllable switch to perform the power on / off operation; the present invention uses a single button to control the power on / off and reset, and uses four pairs of inverters to stabilize and delay the signal, so as to achieve adjustable power on / off and reset time, reduce the possibility of misoperation, and also improve the anti-interference ability of the equipment. By stabilizing and delaying four pairs of inverters, the power on / off and reset operations are achieved using a single button. The user only needs to touch a switch to achieve the power on / off, making the operation more convenient and fast. By pressing for a long time in the switch area, the reset function of the main control chip is triggered. A suitable long press time threshold is set to prevent misoperation from triggering the reset action. The delayed reset circuit can ensure the stability and reliability of the reset operation. The delayed reset circuit can monitor the long press time and accurately trigger the reset instruction. Delayed shutdown can perform necessary cleanup and shutdown operations while normally shutting down running programs. Delayed shutdown can set different delay times according to actual needs, ranging from a few seconds to a few minutes or even longer. This flexibility allows users to select an appropriate delay time to perform shutdown operations according to specific circumstances. Delayed shutdown helps maintain the integrity of the file system, prevents data corruption, and ensures that the device has no unfinished background tasks or communications with peripherals when it is shut down. The present invention improves the user experience and stability of medical devices, while simplifying the operating steps and reducing the number of buttons. This makes the power on / off and reset functions more intelligent and reliable, and reduces the risk of active device reset due to misoperation. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a connection diagram between various circuits in the power on / off and reset circuits.
[0028] Figure 2 It is a step-down circuit diagram.
[0029] Figure 3 It is the key circuit diagram.
[0030] Figure 4 It is a controllable switch circuit diagram.
[0031] Figure 5 It is the delay and control circuit diagram.
[0032] Figure 6 This is the reset circuit diagram.
[0033] Figure 7 This is the main control circuit diagram.
[0034] Figure 8 It is the overall circuit diagram.
[0035] Explanation of reference numerals: Capacitor 1 C1, Capacitor 2 C2, Capacitor 3 C3, Capacitor 4 C4, Capacitor 5 C5, Capacitor 6 C6, Capacitor 7 C7, Capacitor 8 C8, Capacitor 9 C9, Capacitor 10 C10, Capacitor 11 C11, Capacitor 12 C12, Capacitor 13 C13, Capacitor 14 C14, Capacitor 15 C15, Capacitor 16 C16, Capacitor 17 C17, Capacitor 18 C18, Capacitor 19 C19, Diode 1 D1, Diode 2 D2, Diode 3 D3, Diode 4 D4, Diode 5 D5, Diode 6 D6, Diode 7 D7, PMOS tube 1 Q1, Transistor 2 Q2, PMOS tube 3 Q3, Transistor Q4, Transistor Diode Q5, resistor one R1, resistor two R2, resistor three R3, resistor four R4, resistor five R5, resistor six R6, resistor seven R7, resistor eight R8, resistor nine R9, resistor ten R10, resistor eleven R11, resistor twelve R12, resistor thirteen R13, resistor fourteen R14, resistor fifteen R15, resistor sixteen R16, resistor seventeen R17, resistor eighteen R18, reset button one SW1, single-chip computer STM32F103, linear regulator U1, linear regulator U2, inverter four U4, power supply voltage vcc, power supply voltage five VCC5, crystal oscillator Y1, noise reduction signal stabilization circuit 100, delay reset circuit 200. DETAILED DESCRIPTION
[0036] The specific technical solutions of the present invention are further described in detail below with reference to the accompanying drawings.
[0037] A circuit for turning on, off and resetting a medical device. Figure 1It is a connection diagram between various circuits in the switch and reset circuit, including a reset button. The switch and reset circuit includes a power supply circuit, a controllable switch circuit, a button circuit, a step-down circuit, a delay and control circuit, a reset circuit and a main control circuit, wherein the power supply is respectively connected to the input end of the controllable switch circuit and the button circuit, and the output end of the button circuit is respectively connected to the main control circuit, the control end of the controllable switch circuit and the delay reset circuit 200 of the delay and control circuit; the output end of the controllable switch circuit is connected to the step-down circuit, and the step-down circuit is respectively connected to the main control chip of the main control circuit, the reset circuit and the delay and control circuit; the delay and control The circuit is respectively connected to the main control chip of the main control circuit and the control end 2 of the controllable switch; the reset circuit is simultaneously connected to the delay and control circuit and the main control chip; in the delay and control circuit, an inverter U4 is provided, one end of the inverter U4 is provided with a noise reduction signal stabilization circuit 100, and the other end of the inverter U4 is provided with a delay reset circuit 200, and the noise reduction signal stabilization circuit 100 includes a PMOS tube (P-channel metal oxide semiconductor transistor) Q3 and a transistor Q4, wherein the base and the emitter of the transistor Q4 are respectively connected to the IO port MAIN in the main control circuit via a resistor R15 and a resistor R18. CON pin is connected, the delay reset circuit 200 includes a transistor five Q5 and a resistor and capacitor circuit two, wherein the collector of the transistor five Q5 is connected to the REST pin in the main control circuit via a resistor sixteen R16, the transistor five Q5 is connected to the 5Y terminal on the inverter four U4 via a diode seven D7 and a resistor seventeen R17, a diode five D5 is connected in parallel to the resistor ten in the resistor and capacitor circuit two, one end of the resistor and capacitor circuit two is connected to the 6A terminal of the inverter four U4, and the other end of the resistor and capacitor circuit two is connected to the KEYOPEN pin in the main control circuit.
[0038] Figure 2 : is a step-down circuit diagram, the step-down circuit includes a linear regulator U1 and a linear regulator U2, one end of a capacitor C4 and a capacitor C5 are connected between the two and are connected to a power supply voltage VCC5, the other ends of the capacitor C4 and the capacitor C5 are grounded, the voltage input end of the linear regulator U1 is connected to one end of the capacitor C2 and the capacitor C3 and is also connected to the POWER end, the other ends of the capacitor C2 and the capacitor C3 are grounded, the voltage output end of the linear regulator U2 is connected to one end of the capacitor C1 and the capacitor C6 and is also connected to the power supply voltage VCC, the other ends of the capacitor C1 and the capacitor C6 are grounded.
[0039] Figure 31 is a key circuit diagram, wherein the key circuit includes a reset key SW1, one end of the reset key SW1 is connected to the POWER-IN terminal in the controllable switch circuit via a resistor R5, and the other end of the reset key SW1 is connected to the controllable switch circuit and the KEY OPEN terminal or pin on the main control chip.
[0040] Figure 4 : is a controllable switch circuit diagram, the controllable switch circuit includes a PMOS tube Q1 and a diode D1, a diode D2, and a diode D3, wherein the input end of the diode D1 is connected to the POWER-IN terminal, the output end is respectively connected to the positive electrode of the capacitor C8, one end of the resistor R1, and the source of the PMOS tube (P-channel metal oxide semiconductor transistor) Q1, the negative electrode of the capacitor C8 is grounded, the source of the PMOS tube (P-channel metal oxide semiconductor transistor) Q1 is connected to the drain of the POWER terminal in the step-down circuit, the other end of the resistor R1 is connected to the gate of the PMOS tube (P-channel metal oxide semiconductor transistor) Q1, and at the same time, it is connected to the collector of the transistor Q2 through the resistor R3, the base of the transistor Q2 is connected to the negative electrodes of the diode D2 and the diode D3, and at the same time, it is grounded through the resistor R8, the emitter of the transistor Q2 is grounded, and the positive electrodes of the diode D2 and the diode D3 are respectively connected to the KEY in the main control circuit through the resistor R4 and the resistor R6. OPEN and MAIN OPEN ends.
[0041] The principle of the controllable switch circuit is: the diode D1 conducts unidirectionally to prevent the power supply from being reversed; the capacitor C8 can prevent the power supply voltage from being reduced due to a sudden increase in the load when the PMOS tube Q1 is turned on; the resistor R1 and the resistor R3 form a voltage divider circuit. When the diode Q2 is not turned on, no voltage division is performed. After the transistor Q2 is turned on, the resistor R1 and the resistor R3 perform voltage division to make the PMOS tube (P-channel metal oxide semiconductor transistor) Q1 reach the conduction condition and supply power to the POWER. The diode D2 and the diode D3 conduct unidirectionally to prevent the KEY OPEN and MAIN OPEN signals from interfering with each other. The resistor R4 and the resistor R6 respectively form a voltage divider circuit with the resistor R8 to make the base voltage of the transistor Q2 meet the conduction condition of the transistor Q2.
[0042] Figure 51 is a delay and control circuit diagram, wherein the collector of the transistor Q4 of the noise reduction signal stabilization circuit 100 is connected to the gate of the PMOS tube Q3, the source of the PMOS tube Q3 is connected to the power supply VCC, the gate is connected to the power supply VCC via the resistor R13, the emitter of the transistor Q4 and the other end of the resistor R18 are grounded at the same time, the drain of the PMOS tube Q3 is connected to the 1A terminal on the inverter U4 via the diode D6 and one end of the resistor-capacitor circuit, the other end of the resistor-capacitor circuit is grounded, and the resistor-capacitor circuit is a capacitor C17 and a resistor R11 connected in parallel.
[0043] Reference Figure 5 The principle of the noise reduction signal stabilization circuit 100 is: when the MAIN CON high-level transistor Q4 is turned on, the resistor 18 R18 is a pull-down resistor to ensure that the base of the transistor Q4 is at a low level in the initial state, and the transistor Q4 is turned off by default; the resistor 15 R15 is a current limiting resistor to protect the transistor Q4 from being damaged due to excessive current; the resistor 13 R13 provides a default high level for the gate of the PMOS tube Q3. When the transistor Q4 is turned on, the PMOS tube Q3 is turned on, and after passing through the diode 6 D6, the signal is input to the inverter 4 U4. After two inversions, it is connected to the controllable switch. The diode 6 D6 conducts unidirectionally to prevent current backflow. The capacitor 17 C17 plays a role of retention to prevent voltage fluctuations. The resistor R11 discharges the capacitor 17 C17 for use.
[0044] The time delay reset circuit 200 includes a resistor and capacitor circuit 2, a diode 7 D7 and a transistor 5 Q5. The resistor and capacitor circuit 2 includes a capacitor 18 C18 and a resistor 10 R10. One end of the capacitor 18 C18 and the resistor 10 R10 is connected to the 6A terminal of the inverter 4 U4, wherein the other end of the capacitor 18 C18 is grounded. The resistor 10 R10 is connected in parallel with a diode 5 D5, and the other parallel end is connected to the KEY OPEN pin in the main control circuit, and is also connected to a resistor 14 R14; the positive electrode of the diode 7 D7 is connected to the 5Y terminal of the inverter 4 U4, the negative electrode of the diode 7 D7 is connected to the emitter base of the transistor 5 Q5 via the resistor 17 R17, the collector of the transistor 5 Q5 is connected to the RSET pin in the main control circuit via the resistor 16 R16, and the emitter electrode of the transistor 5 Q5 is grounded. The delay reset circuit 200 also includes a capacitor C16, one end of the capacitor C16 is connected to the power supply voltage vcc terminal of the inverter U4, and the negative electrode of the capacitor C16 is grounded.
[0045] The reset circuit includes a diode D4, which is connected in parallel with a resistor R9. One end of the parallel circuit is connected to a power supply voltage VCC, and the other end of the parallel circuit is connected to a capacitor C15, which is also connected to the RESET pin of the main control chip. The other end of the capacitor C15 is grounded.
[0046] Figure 6 This is the reset circuit diagram. In the reset circuit, the voltage of the capacitor is 0V in the initial state. After the power is turned on, the capacitor starts to charge slowly from 0V, which is determined by the RC delay time formed between the resistor and the capacitor. When the voltage of the capacitor reaches the threshold that triggers the reset, the microcontroller STM32F103 detects this condition through a comparator or other logic gate circuit. After detecting that the voltage reaches the threshold, the trigger will generate a reset signal, so that the reset module returns to a known initial state. Diode four D4 quickly discharges the capacitor when the power supply voltage is 0.
[0047] In the delay reset circuit 200, KEY OPEN enters the inverter U4 through the resistor-capacitor circuit composed of resistor R10 and capacitor C18. After two reverses, a stable signal is output and input to the base of transistor Q5 to control the reset of the microcontroller. Diode D7 prevents current backflow, and resistor R17 is a current limiting resistor.
[0048] Figure 7 : is a main control circuit diagram, the main control circuit includes a main control chip, the main control chip is a single-chip microcomputer STM32F103, a crystal oscillator Y1 is arranged between pins 5 and 6 of the single-chip microcomputer STM32F103, two ends of the crystal oscillator Y1 are respectively connected to one end of a mutually parallel capacitor C10 and a capacitor C9, the other ends of the capacitor C10 and the capacitor C9 are connected in series with one end of a mutually parallel capacitor C12 and a capacitor C11, and are simultaneously connected to pin 12 of the single-chip microcomputer STM32F103, the other ends of the mutually parallel capacitor C12 and the capacitor C11 are simultaneously connected to pin 13 of the single-chip microcomputer STM32F103 and a resistor R7, wherein the other end of the resistor R7 is connected to a power supply voltage VCC; the single-chip microcomputer STM3 A capacitor C14 is connected in series between pins 18 and 19 of 2F103, one end of a resistor R12 is connected in series to pin 28 of the microcontroller STM32F103, and the other end of the resistor R12 is grounded; a capacitor C19 is connected in series between pins 31 and 32 of the microcontroller STM32F103, a capacitor C13 is connected in series between pins 47 and 48, one end of a resistor R2 is connected to pin 60, and the other end of the resistor R2 is grounded, and a capacitor C7 is connected in series between pins 63 and 64.
[0049] A method for turning on, off and resetting a medical device. Figure 8 The schematic diagram of the overall circuit is a circuit for turning on and off and resetting the above-mentioned medical device. The turning on and off and resetting methods are as follows:
[0050] 1) When the reset button SW1 is pressed, the voltage of KEYOPEN is equal to the voltage of POWER_IN. After the voltage is divided by resistors R4 and R8, transistor Q2 is turned on. At this time, PMOS Q1 is turned on, and POWER supplies power to the main control chip microcontroller through the step-down circuit. The microcontroller enters the working state. The IO port MAIN CON of the microcontroller outputs a high level to turn on transistor Q4. At this time, PMOS (P-channel metal oxide semiconductor transistor) Q3 is turned on, and the voltage of VCC is input to the 1A pin of inverter U4, and then connected to the 2A pin after being output through 1Y. The terminal 2Y pin outputs MAIN OPEN. At this time, MAIN OPEN is a high level. Regardless of whether the button is lifted or not, transistor Q2 will be in the on state and the machine will be turned on.
[0051] 2) When the reset button SW1 is pressed, KEY OPEN is charging through the resistor + R10 and the capacitor + C18 while controlling the power on;
[0052] 3) Press the reset button SW1 and lift it to start the device normally;
[0053] 4) After the reset button SW1 is pressed and not released for a long time, when the voltage of the capacitor plate C18 reaches the threshold of the inverter U4, the terminal 6A in the inverter U4 will receive a high-level signal, and the terminal 6Y will output a low level. The terminal 6Y is connected to the terminal 5A, and the terminal 5Y will output a high level. At this time, the transistor Q5 is turned on, the RESET pin will become a low level, and the single-chip computer is reset. At this time, after releasing the button, the capacitor C18 is quickly discharged through the diode D5 and the resistor R14, ensuring that when the button is pressed again, the entire circuit system returns to the initial state;
[0054] 6) Press the reset button SW1 again, and the device will start normally;
[0055] 7) When the device is powered on, when the reset button SW1 is pressed, the KEY OPEN pin will output a high level. When the main control chip receives this high level, it will shut down. The MAIN CON pin will output a low level signal, the transistor Q4 will be turned off, the PMOS tube 3 will be turned off, and the MAIN OPEN pin will output a low level.
[0056] 8) When the reset button SW1 is released, the device is completely powered off and shut down.
[0057] The present invention has positive effects: by setting a step-down circuit in the switch and reset circuit, the input high voltage can be reduced to the voltage required by the device; by setting a key circuit in the switch and reset circuit, the switch and reset can be judged according to the length of time the key is pressed; by setting a controllable switch circuit in the switch and reset circuit, the signal control can be implemented by using KEYOPEN and MAIN OPEN, when one of the two signals is at a high level, the transistor 2 Q2 is turned on, the gate voltage of the PMOS tube 1 Q1 is less than the source voltage, the PMOS tube (P-channel metal oxide semiconductor transistor) 1 Q1 is turned on, and power is supplied to the device; by setting a delay and control circuit in the switch and reset circuit, the noise reduction signal stabilization circuit 100 and the threshold of the inverter 4 U4 can be used to filter out fluctuations caused by various interferences in the circuit during the switch, stabilize the switch signal, and increase the anti-interference ability; the forced reset uses the delay reset circuit 200 and the threshold of the inverter 4 U4 to realize the delay of the resistor and capacitor circuit 2, and the reset operation can be realized by long pressing the key. By setting a reset circuit in the power on / off and reset circuit, a quick software and hardware reset can be achieved by pressing the reset button when the system fails, does not respond, or needs to be completely restarted; by setting a main control circuit in the power on / off and reset circuit, in addition to the overall control of the medical device, it can also play a control role, and in the power on / off and reset, it mainly records the time when the button is pressed, and controls the controllable switch to perform the power on / off operation; the present invention uses a single button to control the power on / off and reset, and uses the inverter U4 to stabilize and delay the signal, so as to achieve adjustable power on / off and reset time, reduce the possibility of misoperation, and also improve the anti-interference ability of the equipment. The signal is stabilized and delayed by the inverter U4, and the power on / off and reset operation is achieved by a single button. The user only needs to touch a switch to achieve the power on / off, making the operation more convenient and fast. By pressing for a long time in the switch area, the reset function of the main control chip is triggered. A suitable long press time threshold is set to prevent misoperation from triggering the reset action. The delayed reset circuit 200 can ensure the stability and reliability of the reset operation. The delayed reset circuit 200 can monitor the long press time and accurately trigger the reset instruction. Delayed shutdown can perform necessary cleanup and shutdown operations while normally shutting down running programs. Delayed shutdown can set different delay times according to actual needs, ranging from a few seconds to a few minutes or even longer. This flexibility allows users to select an appropriate delay time to perform shutdown operations according to specific circumstances. Delayed shutdown helps maintain the integrity of the file system, prevents data corruption, and ensures that the device has no unfinished background tasks or communications with peripherals when it is shut down. The present invention improves the user experience and stability of medical devices, while simplifying the operating steps and reducing the number of buttons. This makes the power on / off and reset functions more intelligent and reliable, and reduces the risk of active device reset due to misoperation.
Claims
1. A circuit for turning on, off and resetting a medical device, comprising a reset button, characterized in that: The switch and reset circuit comprises a power supply circuit, a controllable switch circuit, a key circuit, a voltage reduction circuit, a delay and control circuit, a reset circuit and a main control circuit, wherein the power supply is respectively connected to the input end of the controllable switch circuit and the key circuit, the output end of the key circuit is respectively connected to the main control circuit, the control end of the controllable switch circuit and the delay reset circuit (200) of the delay and control circuit; the output end of the controllable switch circuit is connected to the voltage reduction circuit, the voltage reduction circuit is respectively connected to the main control chip of the main control circuit, the reset circuit and the delay and control circuit; the delay and control circuit is respectively connected to the main control chip of the main control circuit, the controllable switch circuit and the reset circuit. The control end 2 of the switch is connected; the reset circuit is connected to the delay and control circuit and the main control chip at the same time; in the delay and control circuit, an inverter 4 (U4) is provided, one end of the inverter 4 (U4) is provided with a noise reduction signal stabilization circuit (100), and the other end of the inverter 4 (U4) is provided with a delay reset circuit (200); the noise reduction signal stabilization circuit (100) includes a PMOS tube 3 (Q3) and a triode 4 (Q4), wherein the base and emitter of the triode 4 (Q4) are respectively connected to the IO port MAIN of the main control circuit via a resistor 15 (R15) and a resistor 18 (R18). CON pin, the time-delay reset circuit (200) includes a transistor five (Q5) and a resistor and capacitor circuit two, wherein the collector of the transistor five (Q5) is connected to the REST pin of the main control circuit via a resistor sixteen (R16), the transistor five (Q5) is connected to the 5Y terminal on the inverter four (U4) via a diode seven (D7) and a resistor seventeen (R17), a diode five (D5) is connected in parallel to the resistor ten in the resistor and capacitor circuit two, one end of the resistor and capacitor circuit two is connected to the 6A terminal of the inverter four (U4), and the other end of the resistor and capacitor circuit two is connected to the KEY OPEN pin of the main control circuit.
2. The circuit for turning on, off and resetting a medical device according to claim 1, characterized in that: The key circuit includes a reset key 1 (SW1), one end of the reset key 1 (SW1) is connected to the POWER-IN terminal in the controllable switch circuit via a resistor 5 (R5), and the other end of the reset key 1 (SW1) is connected to the controllable switch circuit and the KEY OPEN terminal or pin in the main control circuit.
3. The circuit for turning on, off and resetting a medical device according to claim 1, characterized in that: The step-down circuit comprises a linear regulator 1 (U1) and a linear regulator 2 (U2), one end of a capacitor 4 (C4) and a capacitor 5 (C5) are connected between the two and connected to a power supply voltage 5 (VCC5), the other ends of the capacitor 4 (C4) and the capacitor 5 (C5) are grounded, a voltage input end of the linear regulator 1 (U1) is connected to one end of a capacitor 2 (C2) and a capacitor 3 (C3) and is connected to a POWER end, the other ends of the capacitor 2 (C2) and the capacitor 3 (C3) are grounded, a voltage output end of the linear regulator 2 (U2) is connected to one end of a capacitor 1 (C1) and a capacitor 6 (C6) and is connected to a power supply voltage (VCC), the other ends of the capacitor 1 (C1) and the capacitor 6 (C6) are grounded.
4. The circuit for turning on, off and resetting a medical device according to claim 1, characterized in that: The controllable switch circuit comprises a PMOS tube (Q1) and a diode 1 (D1), a diode 2 (D2) and a diode 3 (D3), wherein the input end of the diode 1 (D1) is connected to the POWER-IN terminal, and the output end is respectively connected to the positive electrode of the capacitor 8 (C8), one end of the resistor 1 (R1) and the source of the PMOS tube (Q1), the negative electrode of the capacitor 8 (C8) is grounded, the source of the PMOS tube (Q1) is connected to the drain of the PMOS tube (Q1) and the POWER terminal in the step-down circuit, and the output end is respectively connected to the positive electrode of the capacitor 8 (C8), one end of the resistor 1 (R1) and the source of the PMOS tube (Q1). The other end of resistor 1 (R1) is connected to the gate of PMOS tube (Q1), and at the same time is connected to the collector of transistor 2 (Q2) through resistor 3 (R3). The base of transistor 2 (Q2) is connected to the cathode of diode 2 (D2) and diode 3 (D3), and is grounded through resistor 8 (R8). The emitter of transistor 2 (Q2) is grounded, and the anodes of diode 2 (D2) and diode 3 (D3) are connected to KEY OPEN and MAIN OPEN terminals in the main control circuit through resistor 4 (R4) and resistor 6 (R6) respectively.
5. The circuit for turning on, off and resetting a medical device according to claim 1, characterized in that: The collector of transistor 4 (Q4) of the noise reduction signal stabilization circuit (100) is connected to the gate of PMOS transistor 3 (Q3), the source of PMOS transistor 3 (Q3) is connected to a power supply (VCC), the gate is connected to the power supply (VCC) via resistor 13 (R13), the emitter of transistor 4 (Q4) and the other end of resistor 18 (R18) are grounded at the same time, the drain of PMOS transistor 3 (Q3) is connected to the 1A terminal on inverter 4 (U4) via a diode (D6) and one end of resistor-capacitor circuit 1, the other end of resistor-capacitor circuit 1 is grounded, and resistor-capacitor circuit 1 is a capacitor 17 (C17) and a resistor 11 (R11) connected in parallel.
6. The circuit for turning on, off and resetting a medical device according to claim 1, characterized in that: The time-delay reset circuit (200) comprises a resistor-capacitor circuit 2, a diode 7 (D7) and a transistor 5 (Q5), wherein the resistor-capacitor circuit 2 comprises a capacitor 18 (C18) and a resistor 10 (R10), one end of the capacitor 18 (C18) and the resistor 10 (R10) are connected to the 6A terminal of the inverter 4 (U4), wherein the other end of the capacitor 18 (C18) is grounded, a diode 5 (D5) is connected in parallel to the resistor 10 (R10), and the other parallel end is connected to the KEY OPEN pin in the main control circuit, and a resistor 14 (R14) is also connected; the positive electrode of the diode 7 (D7) is connected to the 5Y terminal of the inverter 4 (U4), the negative electrode of the diode 7 (D7) is connected to the emitter of the transistor 5 (Q5) via the resistor 17 (R17), the collector of the transistor 5 (Q5) is connected to the RSET pin in the main control circuit via the resistor 16 (R16), and the emitter of the transistor 5 (Q5) is grounded, The time-delay reset circuit (200) also includes a capacitor sixteen (C16), one end of the capacitor sixteen (C16) is connected to the power supply voltage (vcc) terminal of the inverter four (U4), and the negative electrode of the capacitor sixteen (C16) is grounded.
7. The circuit for turning on, off and resetting a medical device according to claim 1, characterized in that: The reset circuit includes a diode four (D4), which is connected in parallel with a resistor nine (R9), one end of the parallel circuit is connected to a power supply voltage VCC, the other end of the parallel circuit is connected to a capacitor fifteen (C15), and is also connected to a RESET pin in a main control circuit, and the other end of the capacitor fifteen (C15) is grounded.
8. The circuit for turning on, off and resetting a medical device according to claim 1, characterized in that: The main control circuit includes a main control chip, which is a single-chip microcomputer STM32F103. A crystal oscillator (Y1) is arranged between pins 5 and 6 of the single-chip microcomputer STM32F103. Two ends of the crystal oscillator (Y1) are respectively connected to one end of a capacitor ten (C10) and a capacitor nine (C9) connected in parallel with each other. The other ends of the capacitor ten (C10) and the capacitor nine (C9) are connected in series with one end of a capacitor twelve (C12) and a capacitor eleven (C11) connected in parallel with each other, and are connected to pin No. 12 of the single-chip microcomputer STM32F103 at the same time. The other ends of the capacitor twelve (C12) and the capacitor eleven (C11) connected in parallel with each other are simultaneously connected to pin No. 13 of the single-chip microcomputer STM32F103 and resistor seven (R7), wherein the other end of the resistor seven (R7) is connected to a power supply voltage (VCC); the single-chip microcomputer STM32F103 is connected to the single-chip microcomputer STM32F103. Capacitor fourteen (C14) is connected in series between pins 18 and 19 of TM32F103, one end of resistor twelve (R12) is connected in series to pin 28 of the microcontroller STM32F103, and the other end of resistor twelve (R12) is grounded; capacitor nineteen (C19) is connected in series between pins 31 and 32 of the microcontroller STM32F103, capacitor thirteen (C13) is connected in series between pins 47 and 48, one end of resistor two (R2) is connected to pin 60, and the other end of resistor two (R2) is grounded, and capacitor seven (C7) is connected in series between pins 63 and 64.
9. A method for turning on, off and resetting a medical device, using a circuit for turning on, off and resetting a medical device according to any one of claims 1 to 8, characterized in that: The power on / off and reset methods are as follows: 1) After pressing the reset button 1 (SW1), the controllable switch circuit is turned on, and power is supplied to the main control chip through the step-down circuit, so that the main control chip enters the working state; 2) The IO port MAIN CON in the main control circuit outputs a high level. At this time, the noise reduction signal stabilization circuit (100) in the delay and control circuit works, transistor 4 (Q4) and PMOS tube 3 (Q3) are turned on, and the power supply voltage (VCC) is input to inverter 4 (U4). After two inversions, the high level is output to control the conduction of the controllable switch. At this time, no matter whether the reset button 1 (SW1) is lifted or not, the device is in the power-on state; 3) Press the reset button 1 (SW1) and lift it to start the device normally; 4) After the reset button 1 (SW1) is pressed and not released for a long time, the delay reset circuit (200) in the delay and control circuit works, and the transistor 5 (Q5) is turned on, so that RESET will become a low level, and the main control chip is reset; 5) After releasing the reset button 1 (SW1), the circuit discharges quickly to ensure that when the reset button 1 (SW1) is pressed again, the entire circuit system returns to its initial state; 6) Press reset button 1 (SW1) again, and the device will start normally; 7) When the device is powered on, when the reset button 1 (SW1) is pressed, the KEY OPEN pin will have a high level output. When the main control chip receives this high level, it will shut down. The main control chip outputs a low level signal, and the left half of the delay and control circuit works. Transistor 4 (Q4) and PMOS tube 3 (Q3) are turned on and off, and MAIN OPEN outputs a low level. 8) When the reset button 1 (SW1) is released, the device is completely powered off and shut down.
