Reset circuit based on USB connector and terminal equipment
By introducing a combination of unidirectional conductive components, RC reset circuits and transistors into the USB connector, emergency power supply is provided, which solves the reset problem of the terminal equipment when the internal power supply terminal is exhausted or the circuit crashes, and realizes the normal operation of the equipment and Quick recovery.
Patent Information
- Application Number
- CN202322829306.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2033-10-19
AI Technical Summary
During the operation of the terminal equipment, when the internal power supply terminal is exhausted or the circuit crashes, the controller cannot operate normally, causing the equipment to be unable to be reset and restarted.
A reset circuit based on a USB connector is designed to provide emergency power supply through a combination of unidirectional conductive components, RC reset circuits and transistors, and adjust the reset time of the controller through the RC reset circuit to ensure that the internal power supply is exhausted. Or when there is a power outage, the controller can operate normally and reset.
It realizes the normal operation and quick reset of the terminal equipment controller when the internal power supply terminal is exhausted or the circuit crashes, ensuring that the equipment can be restarted and the reset time is adjusted through the RC reset circuit.
Smart Images

Figure CN221929816U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of terminal equipment, in particular to a reset circuit and terminal equipment based on a USB connector. Background Art
[0002] When operating terminal devices such as safe deposit boxes or smart electronic locks, there is usually an internal power supply to provide voltage to the controller (MCU) in the terminal device to maintain the normal operation of the entire terminal device system. Once the internal power supply runs out of power, suddenly loses power, or the circuit freezes, the controller of the terminal device will not be able to power the controller, causing the terminal device to be unable to continue to operate normally. Only when the external power supply is powered again can the terminal device restart and the controller run and perform reset work.
[0003] Therefore, how to ensure that the controller of the terminal device can operate normally and reset when the internal power supply end is exhausted, the power is suddenly cut off or the circuit freezes so that the terminal device cannot work normally has become a technical problem that needs to be solved at present. Utility Model Content
[0004] The first technical problem to be solved by the utility model is to provide a reset circuit based on a USB connector for the above-mentioned prior art. The reset circuit based on a USB connector can provide emergency power supply when the internal power supply end is exhausted, the power is suddenly cut off, or the circuit freezes, thereby ensuring that the controller of the terminal device can operate normally and reset.
[0005] The second technical problem to be solved by the present invention is to provide a terminal device using the above reset circuit.
[0006] The technical solution adopted by the utility model to solve the first technical problem is: a reset circuit based on a USB connector, characterized in that it includes:
[0007] A controller having an operating voltage input terminal and a reset port;
[0008] A USB connector, a first port of which is connected to a ground terminal;
[0009] Internal voltage input terminal, connected to the working voltage input terminal of the controller;
[0010] A unidirectional conductive element, whose voltage input end is connected to the voltage output end of the USB connector, and whose voltage output end is connected to the working voltage input end of the controller; wherein the internal voltage input end is located between the voltage output end of the unidirectional conductive element and the working voltage input end of the controller;
[0011] A first resistor, a first end of which is connected to the voltage output end of the USB connector, and a second end of which is connected to the ground end;
[0012] An RC reset circuit, wherein an input end of the RC reset circuit is connected to a first end of a first resistor, and an output end of the RC reset circuit is connected to a ground end via a third resistor;
[0013] A transistor, whose base is connected to the output end of the RC reset circuit, whose collector is connected to the reset port of the controller through a fourth resistor, and whose emitter is connected to the ground end.
[0014] Improved, in the reset circuit based on the USB connector, the RC reset circuit comprises:
[0015] A first capacitor, a first electrode of which is connected to a first end of the first resistor; wherein the first electrode of the first capacitor is the input end of the RC reset circuit;
[0016] A second resistor, a first end of which is connected to the second electrode of the first capacitor, and a second end of the second resistor is the output end of the RC reset circuit;
[0017] Alternatively, the RC reset circuit comprises:
[0018] A second resistor, a first end of which is connected to the first end of the first resistor; wherein the first end of the second resistor is the input end of the RC reset circuit;
[0019] The first capacitor has a first electrode connected to the second end of the second resistor, and the second electrode of the first capacitor is the output end of the RC reset circuit.
[0020] Improved, in the reset circuit based on the USB connector, the unidirectional conductive element is a diode, the anode of the diode is the voltage input terminal of the unidirectional conductive element, and the cathode of the diode is the voltage output terminal of the unidirectional conductive element.
[0021] Furthermore, in the reset circuit based on the USB connector, the model of the diode is SS14.
[0022] As a further improvement, in the reset circuit based on the USB connector, the supply voltage range of the internal voltage input terminal is 4V to 6.4V.
[0023] Preferably, in the reset circuit based on the USB connector, the supply voltage of the internal voltage input terminal is 5V.
[0024] Further, in the reset circuit based on the USB connector, the resistance value of the first resistor is 1 kΩ, the capacitance value of the first capacitor is 1 μF, the resistance value of the second resistor is 10 kΩ, the resistance value of the third resistor is 3.3 kΩ, and the resistance value of the fourth resistor is 1 kΩ.
[0025] Improved, in the reset circuit based on the USB connector, the input voltage of the USB connector is 5V.
[0026] Furthermore, in the reset circuit based on the USB connector, the model of the transistor is S8050, and the model of the USB connector is TYPE-C-31-M-18.
[0027] The technical solution adopted by the utility model to solve the second technical problem is: the terminal device is characterized by applying the reset circuit based on the USB connector.
[0028] Optionally, in the utility model, the terminal device is a safe deposit box or a door lock or an electronic lock.
[0029] Compared with the prior art, the advantages of the utility model are: in the reset circuit of the utility model, by adding a unidirectional conductive element, and setting an internal voltage input terminal between the working voltage input terminal of the controller and the voltage output terminal of the unidirectional conductive element, and by adding a first resistor connected to the voltage output terminal of the USB connector to prevent external voltage interference, by setting an RC reset circuit, and using the resistor forming the RC reset circuit and an independent third resistor to perform a voltage dividing resistor effect, and then by adding a transistor, and connecting the base of the transistor to the voltage dividing resistor, the collector of the transistor is connected to the reset port of the controller through a fourth resistor, and the emitter of the transistor is connected to the ground terminal, so that when the voltage output terminal of the USB connector inputs a voltage to the internal circuit, the voltage output by the voltage output terminal can not only provide emergency power supply to the controller and restart the operation, but also use the RC reset circuit to adjust the reset time of the controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a schematic diagram of a reset circuit based on a USB connector in Embodiment 1 of the present utility model;
[0031] Figure 2 This is a schematic diagram of a reset circuit based on a USB connector in Embodiment 2 of the present utility model. DETAILED DESCRIPTION
[0032] The present invention will be described in further detail below in conjunction with the accompanying drawings.
[0033] Embodiment 1
[0034] This embodiment provides a reset circuit based on a USB connector. Figure 1 As shown, the reset circuit based on the USB connector of this embodiment includes:
[0035] The controller MCU has a working voltage input terminal VDD and a reset port NRST;
[0036] A USB connector U, a first port of which is connected to a ground terminal GND;
[0037] The internal voltage input terminal VCC is connected to the working voltage input terminal VDD of the controller MCU; the internal voltage input terminal VCC here can be powered by a battery; for example, the supply voltage range of the internal voltage input terminal is 4V to 6.4V, preferably 5V;
[0038] A unidirectional conductive element D1, whose voltage input end is connected to the voltage output end VUSB of the USB connector U, and whose voltage output end is connected to the working voltage input end VDD of the controller MCU; wherein the internal voltage input end VCC is located between the voltage output end of the unidirectional conductive element D1 and the working voltage input end VDD of the controller MCU; for example, the unidirectional conductive element D1 here is a diode;
[0039] A first resistor R1, a first end of which is connected to a voltage output terminal VUSB of the USB connector U, and a second end of the first resistor R1 is connected to a ground terminal GND;
[0040] The RC reset circuit comprises a first capacitor C1 and a second resistor R2, wherein a first electrode of the first capacitor C1 is connected to a first end of the first resistor R1, a second electrode of the first capacitor C1 is connected to a first end of a second resistor R2, and a second end of the second resistor R2 is connected to a ground terminal GND via a third resistor R3; wherein the first electrode of the first capacitor C1 is an input end of the RC reset circuit, and the second end of the second resistor R2 is an output end of the RC reset circuit;
[0041] The transistor Q1 has a base b connected to the second end of the second resistor R2, a collector c connected to a reset port NRST of the controller MCU via a fourth resistor R4, and an emitter e connected to the ground terminal GND.
[0042] Among them, in the above-mentioned USB-based reset circuit, the first resistor R1 is used to prevent external voltage interference; the first capacitor C1 and the second resistor R2 are matched to form an RC reset circuit, and the second resistor R2 and the third resistor R3 are voltage-dividing resistors; when the input voltage of the internal voltage input terminal VCC is less than 5V, the transistor Q1 is not turned on and the reset circuit is not started; when the output voltage of the voltage output terminal VUSB of the USB connector U is 5V, the transistor Q1 is turned on, the reset circuit is started, the reset port NRST voltage of the controller MCU becomes low, the reset function is enabled, and the controller MCU completes the reset; wherein the reset time is determined by the combination of the first capacitor C1 and the second resistor R2 of the RC reset circuit.
[0043] Specifically, in this embodiment, the unidirectional conductive element D1 is a diode with a unidirectional conduction function, which has a reverse conduction prevention function; the positive electrode of the diode is the voltage input terminal of the unidirectional conductive element D1, and the negative electrode of the diode is the voltage output terminal of the unidirectional conductive element D1. The model of the diode is SS14. When the USB connector U has no input voltage, the voltage output terminal VUSB is suspended and grounded through the first resistor R1, so that the voltage output terminal VUSB is low; when the USB connector U has an input voltage, the working voltage input terminal VDD of the controller MCU is powered through the diode.
[0044] Specifically, in this embodiment, the supply voltage of the internal voltage input terminal VCC is 5V; the resistance of the first resistor R1 is 1kΩ, the capacitance of the first capacitor C1 is 1μF, the resistance of the second resistor R2 is 10kΩ, the resistance of the third resistor R3 is 3.3kΩ, and the resistance of the fourth resistor R4 is 1kΩ. The model of the transistor Q1 is S8050; the model of the USB connector U is TYPE-C-31-M-18, and the input voltage of the USB connector U is 5V.
[0045] The following combination Figure 1 , the principle of the reset circuit based on the USB connector in this embodiment is explained:
[0046] In the above-mentioned reset circuit based on USB, the first resistor R1 has the function of preventing external voltage interference; the first capacitor C1 and the second resistor R2 are matched to form a reset time constant combination circuit; the second resistor R2 and the third resistor R3 are voltage-dividing resistors; when there is no USB external power supply, the transistor Q1 is not turned on and the reset circuit is not started; when the output voltage of the voltage output terminal VUSB of the USB connector U is 5V, the transistor Q1 is turned on, the reset circuit is started, the reset port NRST voltage of the controller MCU becomes low, the reset function is enabled, and the controller MCU completes the reset; wherein, the reset time is determined by the combination of the first capacitor C1 and the second resistor R2 of the RC reset circuit.
[0047] When the voltage output terminal VUSB of the USB connector U outputs voltage to the outside, the voltage outputted by the voltage output terminal VUSB can provide power supply voltage for the entire system of the controller MCU, so that the entire system can operate normally; wherein, the power supply of the voltage output terminal VUSB here is to provide emergency power supply for the controller MCU, and even if there is no input voltage inside the terminal device where the controller MCU is located, the normal operation of the controller MCU can be ensured;
[0048] When the voltage output terminal VUSB of the USB connector U outputs voltage, the controller MCU system can be restarted to quickly repair the controller system that has crashed due to an accident. At the same time, the first capacitor C1 and the second resistor R2 are used to adjust the reset time of the controller MCU.
[0049] In addition, this embodiment also provides a terminal device, which is applied with the above reset circuit based on the USB connector. For example, the terminal device here can be a safe deposit box or a door lock or an electronic lock.
[0050] Embodiment 2
[0051] This embodiment provides another reset circuit based on a USB connector. Figure 2 As shown, the difference from the reset circuit based on the USB connector in the first embodiment is that the RC reset circuit in the second embodiment. Specifically, the RC reset circuit RC in the second embodiment includes a second resistor R2 and a first capacitor C1, wherein the first end of the second resistor R2 is connected to the first end of the first resistor R1; wherein the first end of the second resistor R2 is the input end of the RC reset circuit; the first electrode of the first capacitor C1 is connected to the second end of the second resistor R2, and the second electrode of the first capacitor C1 is the output end of the RC reset circuit.
[0052] As for the working principle of the reset circuit in this embodiment, please refer to the contents described in the first embodiment and will not be repeated here.
[0053] Although the preferred embodiments of the present invention are described in detail above, it should be clearly understood that the present invention may be modified and varied by those skilled in the art. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A reset circuit based on a USB connector, characterized in that: include: A controller having an operating voltage input terminal and a reset port; A USB connector (U), a first port of which is connected to a ground terminal; Internal voltage input terminal, connected to the working voltage input terminal of the controller; A unidirectional conductive element (D1), whose voltage input end is connected to the voltage output end of the USB connector (U), and whose voltage output end is connected to the working voltage input end of the controller; wherein the internal voltage input end is located between the voltage output end of the unidirectional conductive element (D1) and the working voltage input end of the controller; A first resistor (R1), a first end of which is connected to a voltage output end of the USB connector (U), and a second end of which is connected to a ground end; An RC reset circuit, wherein an input end of the RC reset circuit is connected to a first end of a first resistor (R1), and an output end of the RC reset circuit is connected to a ground end via a third resistor (R3); A transistor (Q1), a base (b) of which is connected to the output end of the reset circuit, a collector (c) of the transistor (Q1) is connected to the reset port of the controller via a fourth resistor (R4), and an emitter (e) of the transistor (Q1) is connected to the ground end.
2. The reset circuit based on the USB connector according to claim 1, characterized in that: The RC reset circuit comprises: A first capacitor (C1), a first electrode of which is connected to a first end of a first resistor (R1); wherein the first electrode of the first capacitor (C1) is an input end of the RC reset circuit; A second resistor (R2), a first end of which is connected to the second electrode of the first capacitor (C1), and a second end of the second resistor (R2) is the output end of the RC reset circuit; Alternatively, the RC reset circuit comprises: A second resistor (R2), a first end of which is connected to the first end of the first resistor (R1); wherein the first end of the second resistor (R2) is the input end of the RC reset circuit; The first capacitor (C1) has a first electrode connected to the second end of the second resistor (R2), and the second electrode of the first capacitor (C1) is the output end of the RC reset circuit.
3. The reset circuit based on the USB connector according to claim 2, characterized in that: The unidirectional conductive element (D1) is a diode, the anode of the diode is the voltage input end of the unidirectional conductive element (D1), and the cathode of the diode is the voltage output end of the unidirectional conductive element (D1).
4. The reset circuit based on the USB connector according to claim 3, characterized in that: The diode is of type SS14.
5. The reset circuit based on the USB connector according to claim 4, characterized in that: The supply voltage of the internal voltage input terminal is 5V.
6. The reset circuit based on the USB connector according to claim 5, characterized in that: The resistance value of the first resistor (R1) is 1kΩ, the capacitance value of the first capacitor (C1) is 1µF, the resistance value of the second resistor (R2) is 10kΩ, the resistance value of the third resistor (R3) is 3.3kΩ, and the resistance value of the fourth resistor (R4) is 1kΩ.
7. The reset circuit based on the USB connector according to claim 6, characterized in that: The input voltage of the USB connector (U) is 5V.
8. The reset circuit based on the USB connector according to claim 7, characterized in that: The model of the transistor (Q1) is S8050, and the model of the USB connector (U) is TYPE-C-31-M-18.
9. A terminal device, characterized in that: A reset circuit based on a USB connector as described in any one of claims 1 to 8 is applied.
10. The terminal device according to claim 9, characterized in that: The terminal device is a safe deposit box, a door lock or an electronic lock.
