Delay reset circuit and printer
By designing a delay reset circuit, the printer's self-start and automatic reset is achieved by using the delay unit and switch circuit, solving the problem that traditional reset circuits cannot achieve self-start and saving microcontroller resources.
Patent Information
- Application Number
- CN202421590823.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2034-07-05
AI Technical Summary
Traditional reset circuits cannot achieve self-start after the entire system power supply is powered off, and manual startup is required after hard reset.
A delay reset circuit is designed, including a delay circuit, a switching circuit and a resistor R1. The delay unit delay is triggered by the button, and the switching circuit controls the switch circuit to cut off and restore the input power of the printer to achieve self-start.
It realizes the use of pure hardware to realize reset and automatically restore the system power after the delay time is completed, without the need for MCU to participate in the control, saving microcontroller resources.
Smart Images

Figure CN222814461U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of reset circuits, and in particular to a delayed reset circuit and a printer. Background Art
[0002] The main function of the reset circuit is to ensure that the circuit starts working from the initial state when the microcontroller is powered, help the digital circuit start correctly, and force the system to restart when necessary. Currently, common reset circuits cooperate with the main control MCU (Micro controller Unit) or IC (integrated circuit) input detection and output control to complete soft reset and hard reset. However, soft reset only realizes the soft reset and self-start of the MCU, and cannot realize the self-start after the power of the entire system is cut off. Therefore, power-off reset initialization cannot be realized in other circuit modules. Although hard reset can cut off the power of the entire system, it needs to be manually started after the power is cut off. Utility Model Content
[0003] Based on this, it is necessary to provide a delayed reset circuit and a printer to address the problem that the traditional reset circuit cannot achieve self-starting.
[0004] In order to achieve the above-mentioned purpose, on the one hand, an embodiment of the present application provides a delay reset circuit, which is applied to a printer, including a delay circuit, a switch circuit and a resistor R1; the delay circuit includes a button and a delay unit, the button is connected to the delay unit, and the delay unit is connected to the switch circuit through the resistor R1; the switch circuit is connected to the power input terminal of the printer;
[0005] When the button is turned on, the switch circuit cuts off the input power of the printer. After the delay unit is delayed, the switch circuit turns on the input power of the printer and the button is reset. The input power is connected from the power input terminal.
[0006] In one embodiment, the delay unit includes a transistor Q1, a transistor Q2, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a diode D1 and a variable capacitor C1;
[0007] One end of the button is respectively connected to the collector of transistor Q1 and one end of resistor R2, and the other end is connected to the emitter of transistor Q1; the other end of resistor R2 is respectively connected to one end of resistor R3 and the base of transistor Q2; the other end of resistor R3 and the emitter of transistor Q2 are connected to the first voltage source;
[0008] The base of transistor Q1 is connected to one end of resistor R4; the other end of resistor R4 is respectively connected to the cathode of diode D1 and one end of variable capacitor C1; the other end of variable capacitor C1 is respectively connected to the collector of transistor Q2, resistor R1 and one end of resistor R5;
[0009] The emitter of the transistor Q1, the anode of the diode D1 and the other end of the resistor R5 are grounded.
[0010] In one embodiment, the delay unit further includes a light emitting diode D2; one end of the light emitting diode D2 is respectively connected to the other end of the variable capacitor C1, the resistor R1, one end of the resistor R5 and the collector of the transistor Q2, and the other end is grounded.
[0011] In one embodiment, the transistor Q1 is an NPN transistor; the transistor Q2 is a PNP transistor.
[0012] In one embodiment, the switch circuit includes a resistor R6, a resistor R7, a resistor R8, a resistor R9, a resistor R10, a MOS transistor Q3, a MOS transistor Q4 and a MOS transistor Q5;
[0013] The gate of the MOS transistor Q3 is connected to one end of the resistor R1 and the resistor R6 respectively, the drain is connected to the gate of the MOS transistor Q4 and one end of the resistor R7 respectively, and the source is grounded; the other end of the resistor R6 is grounded;
[0014] The source of the MOS tube Q4, the source of the MOS tube Q5 and the other end of the resistor R7 are connected to the second voltage source; the drain of the MOS tube Q4 is connected to one end of the resistor R8; the other end of the resistor R8 is respectively connected to the gate of the MOS tube Q5 and one end of the resistor R9; the drain of the MOS tube Q5 is connected to one end of the resistor R10; the other end of the resistor R9 and the other end of the resistor R10 are grounded.
[0015] In one embodiment, the switch circuit further includes a light emitting diode D3; an anode of the light emitting diode D3 is connected to the other end of the resistor R10, and a cathode of the light emitting diode D3 is grounded.
[0016] In one embodiment, the MOS transistor Q3 is an N-type MOS transistor, the MOS transistor Q4 is a P-type MOS transistor, and the MOS transistor Q5 is a P-type MOS transistor.
[0017] On the other hand, an embodiment of the present application further provides a printer, comprising the above-mentioned delay reset circuit.
[0018] One of the above technical solutions has the following advantages and beneficial effects:
[0019] The delay reset circuit of the present application includes a delay circuit, a switch circuit and a resistor R1. Among them, the delay circuit includes a button and a delay unit, the button is connected to the delay unit, and the delay unit is connected to the switch circuit through the resistor R1; the switch circuit is connected to the power input terminal of the printer. During the operation of the printer, when the button is turned on, the switch circuit cuts off the input power of the printer. After the delay unit is delayed, the switch circuit turns on the input power of the printer, so that the delay reset circuit of the present application realizes reset by pure hardware, and the delay is self-starting. At the same time, the delay reset circuit of the present application does not require MCU to participate in the control, saving the single-chip computer resources in the printer. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic diagram of the structure of the delay reset circuit provided for the implementation of the present application.
[0021] Figure 2 A circuit diagram of a time-delay reset circuit provided for the implementation of the present application.
[0022] Figure 3 Another circuit diagram of the delay reset circuit provided for the implementation of the present application. DETAILED DESCRIPTION
[0023] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present application are given in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0024] It should be noted that when an element is considered to be "connected" to another element, it may be directly connected to another element and integrated therewith, or there may be an intermediate element at the same time. The terms "installed", "one end", "the other end" and similar expressions used herein are for illustrative purposes only.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0026] The traditional reset circuit requires the cooperation of the MCU and occupies the interface resources of the MCU. In addition, the traditional soft reset cannot realize the self-start of the entire system after the power is cut off. Although the traditional hard reset can cut off the power of the entire system, it needs to be manually started after the power is cut off. In order to solve the above technical problems, in one embodiment, Figure 1 As shown, a delay reset circuit is provided, which is applied to a printer 2, and includes a delay circuit 11, a switch circuit 13 and a resistor R1. For example, the printer 2 may be a dot matrix printer 2, an inkjet printer 2 or a thermal printer 2. Among them, the delay circuit 11 is used to realize delay control, delay output signal, etc. In one example, the delay circuit 11 includes a button 111 and a delay unit 113, the button 111 is connected to the delay unit 113, and the delay unit 113 is connected to the switch circuit 13 through the resistor R1. The switch circuit 13 is connected to the power input terminal 21 of the printer 2, and is used to cut off the input power of the printer 2 and turn on the input power of the printer 2. During the power-on operation of the printer 2, if the printer 2 needs to be reset, the button 111 on the delay circuit 11 is pressed. When the button 111 is turned on, the switch circuit 13 cuts off the input power of the printer 2. After the delay of the delay unit 113 is completed, the switch circuit 13 turns on the input power of the printer 2, and the button 111 is reset; the input power is connected to the power input terminal 21.
[0027] There are many ways to implement the delay circuit 11, such as Figure 2 As shown, a feasible way is provided: the delay unit 113 includes transistor Q1, transistor Q2, resistor R2, resistor R3, resistor R4, resistor R5, diode D1 and variable capacitor C1. In one example, transistor Q1 is an NPN transistor; transistor Q2 is a PNP transistor.
[0028] One end of the button 111 is respectively connected to the collector of the transistor Q1 and one end of the resistor R2, and the other end is connected to the emitter of the transistor Q1; the other end of the resistor R2 is respectively connected to one end of the resistor R3 and the base of the transistor Q2; the other end of the resistor R3 and the emitter of the transistor Q2 are connected to the first voltage source.
[0029] The base of transistor Q1 is connected to one end of resistor R4; the other end of resistor R4 is respectively connected to the cathode of diode D1 and one end of variable capacitor C1; the other end of variable capacitor C1 is respectively connected to the collector of transistor Q2, resistor R1 and one end of resistor R5.
[0030] The emitter of the transistor Q1, the anode of the diode D1 and the other end of the resistor R5 are grounded.
[0031] In order to visually monitor the working process of the delay reset circuit, Figure 3 As shown, the delay unit 113 also includes a light emitting diode D2; one end of the light emitting diode D2 is respectively connected to the other end of the variable capacitor C1, the resistor R1, one end of the resistor R5 and the collector of the transistor Q2, and the other end is grounded. During the delay reset process of the printer 2, the light emitting diode D2 changes from off to bright and then slowly turns off.
[0032] There are many ways to implement the switch circuit 13. Here is a feasible way: Figure 2 , as shown, the switch circuit 13 includes a resistor R6, a resistor R7, a resistor R8, a resistor R9, a resistor R10, a MOS transistor Q3, a MOS transistor Q4 and a MOS transistor Q5. In one example, the MOS transistor Q3 is an N-type MOS transistor, the MOS transistor Q4 is a P-type MOS transistor, and the MOS transistor Q5 is a P-type MOS transistor.
[0033] The gate of the MOS transistor Q3 is connected to one end of the resistor R1 and the resistor R6 respectively, the drain is connected to the gate of the MOS transistor Q4 and one end of the resistor R7 respectively, and the source is grounded; the other end of the resistor R6 is grounded.
[0034] The source of the MOS tube Q4, the source of the MOS tube Q5 and the other end of the resistor R7 are connected to the second voltage source; the drain of the MOS tube Q4 is connected to one end of the resistor R8; the other end of the resistor R8 is respectively connected to the gate of the MOS tube Q5 and one end of the resistor R9; the drain of the MOS tube Q5 is connected to one end of the resistor R10; the other end of the resistor R9 and the other end of the resistor R10 are grounded.
[0035] In order to visually monitor the working process of the delay reset circuit, Figure 3 As shown, the switch circuit 13 further includes a light emitting diode D3; the anode of the light emitting diode D3 is connected to the other end of the resistor R10, and the cathode is grounded. During the delayed resetting process of the printer 2, the light emitting diode D3 changes from bright to dark.
[0036] In a specific example, Figure 3 As shown, a delay reset circuit is provided, including a delay circuit 11, a switch circuit 13 and a resistor R1; the delay circuit 11 includes a button 111 and a delay unit 113; the switch circuit 13 is connected to the power input terminal 21 of the printer 2.
[0037] The delay unit 113 includes transistors Q1, Q2, resistors R2, R3, R4, R5, diode D1, variable capacitor C1 and light emitting diode D2. The switch circuit 13 includes resistors R6, R7, R8, R9, R10, MOS transistors Q3, Q4, Q5 and light emitting diode D3.
[0038] One end of the button 111 is respectively connected to the collector of the transistor Q1 and one end of the resistor R2, and the other end is connected to the emitter of the transistor Q1; the other end of the resistor R2 is respectively connected to one end of the resistor R3 and the base of the transistor Q2; the other end of the resistor R3 and the emitter of the transistor Q2 are connected to the first voltage source.
[0039] The base of transistor Q1 is connected to one end of resistor R4; the other end of resistor R4 is respectively connected to the cathode of the light-emitting diode and one end of variable capacitor C1; the other end of variable capacitor C1 is respectively connected to the collector of transistor Q2, one end of resistor R1 and one end of resistor R5.
[0040] The emitter of transistor Q1, the anode of the light-emitting diode and the other end of resistor R5 are grounded.
[0041] One end of light-emitting diode D2 is respectively connected to the other end of variable capacitor C1, resistor R1, one end of resistor R5 and the collector of transistor Q2, and the other end is grounded.
[0042] The gate of MOS transistor Q3 is respectively connected to one end of resistor R1 and resistor R6, the drain is respectively connected to the gate of MOS transistor Q4 and one end of resistor R7, and the source is grounded; the other end of resistor R6 is grounded.
[0043] The source of MOS transistor Q4, the source of MOS transistor Q5 and the other end of resistor R7 are connected to the second voltage source; the drain of MOS transistor Q4 is connected to one end of resistor R8; the other end of resistor R8 is respectively connected to the gate of MOS transistor Q5 and one end of resistor R9; the drain of MOS transistor Q5 is connected to one end of resistor R10; the other end of resistor R9 is grounded, the anode of light-emitting diode D3 is connected to the other end of resistor R10, and the cathode is grounded.
[0044] The delay reset circuit of this application acts on the main power supply of printer 2. When the second voltage source is +5V, after power-on, MOS transistor Q3 acts as a switching transistor because its Vg (gate voltage) < Vs (source voltage), and the source and drain of MOS transistor Q3 are turned on. Therefore, the output voltage of the drain of MOS transistor Q3 to the ground is about 4.98V, and the yellow light of light-emitting diode D3 lights up, indicating that the power supply here is turned on. In practical applications, it means that the entire printer 2 system has been powered on.
[0045] When the entire system of printer 2 needs to be reset and initialized, the key 111 only needs to be pressed to trigger, and the output voltage of the drain of MOS transistor Q3 to the ground will become close to 0V. At this time, the yellow light of light-emitting diode D3 goes out, indicating that the power supply here is turned off. In practical applications, it means that the entire printer 2 system has lost power.
[0046] The self-starting principle of the delayed reset circuit of the present application is as follows: ① Delay circuit 11: When the button 111 is triggered, the base of the transistor Q2 is pulled down. At this time, the emitter and base of the transistor Q2 are in forward bias, the emitter and the collector are turned on, and the variable capacitor C1 is in a charging state. At the moment when the transistor Q2 is turned on and the variable capacitor C1 is energized, the variable capacitor C1 is in a short-circuit state for a very short moment. The voltage on the right side of the resistor R4 is about 2V at this time, so that the base and emitter of the transistor Q1 are in a forward bias state, and the collector and the emitter are turned on. The diode D1 acts as a freewheeling current, so that even if the button 111 on the left is reset, the transistor Q1 is still in the on state, which prolongs the on time of the transistor Q1, so that the emitter and the collector of the transistor Q2 are continuously turned on until they are slowly turned off. Therefore, the voltage on the left side of the resistor R1 changes from 0 to 2.4V and then slowly changes back to 0V. The intuitive phenomenon is that the light-emitting diode D2 changes from off to bright and then slowly turns off. ② Switching circuit 13: When the light-emitting diode D2 lights up, it indicates that the Vgs (the voltage between the gate and the source) of the MOS tube Q3 is about 2V, and the drain and source of the MOS tube Q3 are turned on. As a result, the gate voltage of the MOS tube Q4 is pulled down, and the source and drain of the MOS tube Q4 are turned on. Therefore, the gate of the MOS tube Q5 is pulled up to about 5V, the MOS tube Q5 is turned off, and the drain voltage of the MOS tube Q5 is 0V. The intuitive phenomenon is that the light-emitting diode D3 turns off from bright.
[0047] Through the above process, when the button 111 is pressed and reset, the light-emitting diode D2 goes from off to bright and then slowly off, and the light-emitting diode D3 goes from bright to off and then bright again. The time of the two light-emitting diodes on and off is determined by the capacitance of the variable capacitor C1. In an example, the capacitance of the variable capacitor C1 is 10uF, so the actual recovery process of the self-start delay after the power of the printer 2 system is reset and powered off is about 2 to 3S (seconds).
[0048] The delay reset circuit of the present application includes a delay circuit 11, a switch circuit 13 and a resistor R1. The delay circuit 11 includes a button 111 and a delay unit 113, the button 111 is connected to the delay unit 113, the delay unit 113 is connected to the switch circuit 13 through the resistor R1; the switch circuit 13 is connected to the power input terminal 21 of the printer 2. During the operation of the printer 2, when the button 111 is turned on, the switch circuit 13 cuts off the input power of the printer 2, and after the delay unit 113 is delayed, the switch circuit 13 turns on the input power of the printer 2, so that the delay reset circuit of the present application realizes reset by pure hardware, and the delay is self-starting. At the same time, the delay reset circuit of the present application does not require the MCU to participate in the control, saving the single-chip computer resources in the printer 2.
[0049] In one embodiment, a printer 2 is provided, comprising the above-mentioned delay reset circuit. It should be noted that the delay reset circuit in this embodiment is the same as the delay reset circuit in each embodiment of the delay reset circuit of the present application. For details, please refer to each embodiment of the delay reset circuit of the present application, which will not be repeated here.
[0050] The printer of this application does not need to control the switch circuit of the printer through the IO (Input / Output) output signal of the main control MCU to maintain the power of the entire system. The printer also does not need to trigger the power on through a button. When the external power is supplied, the entire system module is automatically powered on. When a reset is required, just trigger the reset button, the entire system will be powered off, and through the hardware delay circuit, the power of the entire system will automatically recover after the delay time is over.
[0051] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0052] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims
1. A time-delay reset circuit, which is applied to a printer, characterized in that: It includes a delay circuit, a switch circuit and a resistor R1; the delay circuit includes a button and a delay unit, the button is connected to the delay unit, and the delay unit is connected to the switch circuit through the resistor R1; the switch circuit is connected to the power input terminal of the printer; When the button is turned on, the switch circuit cuts off the input power of the printer. After the delay unit completes the delay, the switch circuit turns on the input power of the printer and the button is reset. The input power is connected by the power input terminal.
2. The time-delay reset circuit according to claim 1, characterized in that: The delay unit includes a transistor Q1, a transistor Q2, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a diode D1 and a variable capacitor C1; One end of the button is respectively connected to the collector of the transistor Q1 and one end of the resistor R2, and the other end is connected to the emitter of the transistor Q1; the other end of the resistor R2 is respectively connected to one end of the resistor R3 and the base of the transistor Q2; the other end of the resistor R3 and the emitter of the transistor Q2 are connected to a first voltage source; The base of the transistor Q1 is connected to one end of the resistor R4; the other end of the resistor R4 is respectively connected to the cathode of the diode D1 and one end of the variable capacitor C1; the other end of the variable capacitor C1 is respectively connected to the collector of the transistor Q2, the resistor R1 and one end of the resistor R5; The emitter of the transistor Q1 , the anode of the diode D1 and the other end of the resistor R5 are grounded.
3. The time-delay reset circuit according to claim 2, characterized in that: The delay unit further includes a light emitting diode D2; one end of the light emitting diode D2 is respectively connected to the other end of the variable capacitor C1, the resistor R1, one end of the resistor R5 and the collector of the transistor Q2, and the other end is grounded.
4. The time-delay reset circuit according to claim 2, characterized in that: The transistor Q1 is an NPN transistor; the transistor Q2 is a PNP transistor.
5. The time-delay reset circuit according to any one of claims 1 to 4, characterized in that: The switch circuit includes a resistor R6, a resistor R7, a resistor R8, a resistor R9, a resistor R10, a MOS transistor Q3, a MOS transistor Q4 and a MOS transistor Q5; The gate of the MOS transistor Q3 is connected to one end of the resistor R1 and the resistor R6 respectively, the drain is connected to the gate of the MOS transistor Q4 and one end of the resistor R7 respectively, and the source is grounded; the other end of the resistor R6 is grounded; The source of the MOS tube Q4, the source of the MOS tube Q5 and the other end of the resistor R7 are connected to a second voltage source; the drain of the MOS tube Q4 is connected to one end of the resistor R8; the other end of the resistor R8 is respectively connected to the gate of the MOS tube Q5 and one end of the resistor R9; the drain of the MOS tube Q5 is connected to one end of the resistor R10; the other end of the resistor R9 and the other end of the resistor R10 are grounded.
6. The time-delay reset circuit according to claim 5, characterized in that: The switch circuit further includes a light emitting diode D3; an anode of the light emitting diode D3 is connected to the other end of the resistor R10, and a cathode of the light emitting diode D3 is grounded.
7. The time-delay reset circuit according to claim 5, characterized in that: The MOS transistor Q3 is an N-type MOS transistor, the MOS transistor Q4 is a P-type MOS transistor, and the MOS transistor Q5 is a P-type MOS transistor.
8. A printer, characterized in that: A time-delay reset circuit comprising any one of claims 1 to 7.