Wake-up circuit
By designing the USB startup module and manual switch module in the wake-up circuit, the problem that the CAT1 chip does not support automatic startup of USB power supply is solved, and the MCU chip is realized to automatically start when connected to USB power supply, which improves the convenience of electronic products.
Patent Information
- Application Number
- CN202322959755.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2033-11-02
AI Technical Summary
The existing CAT1 chip does not support the automatic power-on function when powered by USB, causing electronic products to need to be started manually when connected to USB power supply, which is inconvenient.
Design a wake-up circuit, including a manual switch module and a USB boot module. The manual switch module is connected to the enable pin of the MCU chip and can output an on or off signal to control the start and stop of the MCU chip; the USB boot module is connected to an external USB When the voltage is high, a turn-on signal is output to enable the MCU chip to automatically power on and start.
In the shutdown state, the USB startup module can automatically control the power-on and startup of the MCU chip, which improves the convenience of electronic products when connected to USB for charging and reduces additional startup steps for users.
Smart Images

Figure CN221631941U
Abstract
Description
Technical Field
[0001] The present application relates to the field of control and regulation circuits, and in particular to a wake-up circuit. Background Art
[0002] Automatic power on and off means that the MCU chip can be automatically started when the external USB power supply is connected. In some existing electronic products, the MCU chip is usually used as a processing module and the CAT1 chip is used as a communication module, such as a POS machine.
[0003] However, in order to save costs, existing CAT1 chips usually do not support the automatic power-on function when powered by USB, which makes it inconvenient to use these electronic products in practice. Utility Model Content
[0004] In order to enable electronic products to automatically power on when connected to a USB power supply, the present application provides a wake-up circuit.
[0005] The wake-up circuit provided in this application adopts the following technical solution:
[0006] A wake-up circuit, comprising: a manual switch module and a USB start module;
[0007] A manual switch module is connected to the enable pin of the MCU chip. The manual switch module can output an on signal to the enable pin of the MCU chip so that the MCU chip is powered on and started, or output an off signal to the enable pin of the MCU chip so that the MCU chip is powered off and shut down;
[0008] The USB startup module is connected to the enable pin of the MCU chip. When the USB startup module is connected to the external power supply voltage, it can output a start signal to the enable pin of the MCU chip to power on and start the MCU chip.
[0009] By adopting the above technical solution, the manual switch module can output an on signal or an off signal when triggered externally to control the start and stop of the MCU chip, and is the main control circuit for controlling the operation of the MCU; the USB startup module is connected to the enable pin of the MCU chip together with the manual switch module. When the USB startup module is connected to an external USB voltage, the USB startup module can output an on signal, thereby powering on the MCU chip. From a practical point of view, when an electronic product that is turned off is connected to USB for charging, the USB startup module can automatically control the MCU chip of the POS machine to power on, thereby improving convenience.
[0010] Optionally, a wake-up circuit further includes: a WiFi trigger module and a wake-up module, the output end of the WiFi trigger module is connected to the input end of the wake-up module, the output end of the wake-up module is connected to the wake-up pin of the MCU chip, the WiFi trigger module can receive an external trigger signal, and output a wake-up signal to the wake-up pin of the MCU chip through the wake-up module, so that the MCU chip is awakened from a sleep state.
[0011] Optionally, a wake-up circuit further includes: a manual trigger module, the input end of the manual trigger module is connected to the manual switch module, the output end of the manual trigger module is connected to the input end of the wake-up module, the manual trigger module can receive a start signal output by the manual switch module, and output a wake-up signal to the wake-up pin of the MCU chip through the wake-up module, so that the MCU chip is awakened from a sleep state.
[0012] Optionally, a wake-up circuit further includes: a FUN trigger module, the output end of the FUN trigger module is connected to the input end of the wake-up module, the FUN trigger module responds to an external trigger, and can output a wake-up signal to the wake-up pin of the MCU chip through the wake-up module, so that the MCU chip is awakened from a sleep state.
[0013] In summary, the present application includes at least one of the following beneficial technical effects:
[0014] When triggered externally, the manual switch module can output an on signal or an off signal to control the start and stop of the MCU chip. It is the main control circuit for controlling the operation of the MCU. The USB startup module is connected to the enable pin of the MCU chip together with the manual switch module. When the USB startup module is connected to an external USB voltage, the USB startup module can output an on signal, thereby powering on the MCU chip. From a practical point of view, when the electronic product that is turned off is connected to USB for charging, the USB startup module can automatically control the MCU chip of the POS machine to power on, thereby improving convenience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a circuit schematic diagram of the manual switch module, USB startup module and delay module in the embodiment of the present application;
[0016] Figure 2 : is a circuit schematic diagram of a WiFi trigger module and a FUN trigger module in an embodiment of the present application;
[0017] Figure 3 is a circuit schematic diagram of a manual trigger module in an embodiment of the present application;
[0018] Figure 4 It is a circuit schematic diagram of the FUN trigger module in the embodiment of the present application.
[0019] Explanation of the accompanying drawings: 1. MCU chip; 2. Manual switch module; 3. USB startup module; 4. WiFi trigger module; 5. Wake-up module; 6. Manual trigger module; 7. FUN trigger module; 8. Delay module. DETAILED DESCRIPTION
[0020] The following is combined with Figure 1-4 This application is described in further detail.
[0021] The embodiment of the present application discloses a wake-up circuit, which is applied to electronic products. In the present application, the electronic product is a POS terminal as an example. Figure 1 The wake-up circuit includes a manual switch module 2 and a USB startup module 3.
[0022] The manual switch module 2 is connected to the enable pin of the MCU chip 1. The manual switch module 2 can output an on signal to the enable pin of the MCU chip 1 so that the MCU chip 1 is powered on, or output an off signal to the enable pin of the MCU chip 1 so that the MCU chip 1 is powered off and turned off;
[0023] The USB startup module 3 is connected to the enable pin of the MCU chip 1. When the USB startup module 3 is connected to the external power supply voltage, it can output a start signal to the enable pin of the MCU chip 1 so that the MCU chip 1 is powered on and started.
[0024] The manual switch module 2 can output an on signal or an off signal when triggered externally to control the start and stop of the MCU chip 1, and is the main control circuit for controlling the operation of the MCU; the USB startup module 3 is connected to the enable pin of the MCU chip 1 together with the manual switch module 2. When the USB startup module 3 is connected to an external USB voltage, the USB startup module 3 can output an on signal, thereby powering on the MCU chip 1. From a practical point of view, when the POS machine that is turned off is connected to the USB for charging, the USB startup module 3 can automatically control the MCU chip 1 of the POS machine to power on, thereby improving convenience.
[0025] Specifically, refer to Figure 1, the manual switch module 2 includes a button switch K1, a second transistor Q2, a first resistor R1 and a second resistor R2, wherein the second transistor Q2 is an NPN transistor. Specifically, one end of the button switch K1 is connected to the VABT pin for providing voltage, the other end of the button switch K1 is connected to one end of the first resistor R1, the other end of the first resistor R1 is connected to one end of the second resistor R2, and the other end of the second resistor R2 is grounded. One end of the first resistor R1 connected to the second resistor R2 is connected to the base of the second transistor Q2, the emitter of the second transistor Q2 is grounded, and the collector of the second transistor Q2 is connected to the enable pin of the MCU chip 1. Among them, the enable pin of the MCU chip 1 is configured to be connected to a high-level input by default, and the enable pin of the MCU chip 1 will only enable the MCU chip 1 to be powered on when a low level is input. Among them, the start signal is to input a low level to the enable pin of the MCU chip 1.
[0026] Reference Figure 1 When the button switch K1 is not conducting, the collector and emitter of the second transistor Q2 are not conducting, and the enable pin of the MCU chip 1 inputs the default high level, and the MCU chip 1 cannot be powered on. When the button switch K1 is conducting, the base of the second transistor Q2 inputs a high level, the collector and emitter of the second transistor Q2 are conducting, and the collector of the second transistor Q2 produces a voltage drop, so that the high level input to the enable pin of the MCU chip 1 is pulled down; then, the enable pin of the MCU chip 1 inputs a low level, and the MCU chip 1 can be powered on. The user can control the MCU chip 1 of the POS machine to power on by triggering the switch button K1, and can also control the MCU chip 1 of the POS machine to stop working by disconnecting the button switch K1.
[0027] Specifically, the USB startup module 3 includes a third resistor R3, a fourth resistor R4 and a third transistor Q3, and the third transistor Q3 is an NPN transistor. One end of the third resistor R3 is connected to the USB interface end, the other end of the third resistor R3 is connected to one end of the fourth resistor R4, and the other end of the fourth resistor R4 is grounded. One end where the third resistor R3 and the fourth resistor R4 are connected is connected to the base of the third transistor Q3, the emitter of the third transistor Q3 is grounded, and the collector of the third transistor Q3 is connected to the enable pin of the MCU chip 1.
[0028] When the MCU chip 1 of the POS machine is not powered on and the USB interface is not plugged into an external USB power supply device, there is no conduction between the collector and emitter of the third transistor Q3, and the enable pin of the MCU chip 1 inputs the default high level, so the MCU chip 1 of the POS machine cannot be powered on. When an external USB power supply device is plugged into the USB end, the collector and emitter of the third transistor Q3 are conductive, and the collector of the third transistor Q3 produces a voltage drop, so that the enable pin of the MCU chip 1 connected to the collector of the third transistor Q3 inputs a low level, and the MCU chip 1 of the POS machine can be powered on. When the user charges the POS machine that is turned off through USB, an external charging device is plugged into the USB interface to provide voltage, and the MCU chip 1 of the POS machine can be automatically powered on, thereby reducing the need for additional startup steps for users and improving convenience.
[0029] Further, the collector of the second triode Q2 and the collector of the third triode Q3 can be connected to a common enable pin of the MCU chip 1, or can be connected to an enable pin respectively. It should be noted that the collector of the second triode Q2 and the collector of the third triode Q3 should be connected to a delay module 8 before being connected to the enable pin of the MCU chip 1. In the embodiment of the present application, the collector of the second triode Q2 and the collector of the third triode Q3 are taken as an example to be explained in detail.
[0030] Specifically, refer to Figure 1 The delay module 8 includes a fifth resistor R5 and a first capacitor C1, wherein the collector of the second transistor Q2 and the collector of the third transistor Q3 are both connected to one end of the fifth resistor R5, and the other end of the fifth resistor R5 is connected to the enable pin of the MCU chip 1. In addition, one end of the enable pin is connected to one end of the first capacitor C1, and the other end of the first capacitor C1 is grounded. The enable pin of the MCU chip 1 is also connected to a test point terminal, which is Figure 1 The test point is marked in the middle, and the user can write or download the program to the MCU chip 1 through the test point terminal.
[0031] Further, refer to Figure 2 A wake-up circuit also includes a WiFi trigger module 4 and a wake-up module 5. The output end of the WiFi trigger module 4 is connected to the input end of the wake-up module 5, and the output end of the wake-up module 5 is connected to the wake-up pin of the MCU chip 1. The WiFi trigger module 4 can receive an external trigger signal and output a wake-up signal to the wake-up pin of the MCU chip 1 through the wake-up module 5, so that the MCU chip 1 is awakened from the sleep state.
[0032] Specifically, refer to Figure 2, the WiFi trigger module 4 includes a WiFi chip and a sixth resistor R6, and the wake-up module 5 includes a third diode D3. Among them, one end of the sixth resistor R6 is connected to the output end of the WiFi chip, the other end of the sixth resistor R6 is connected to the cathode of the third diode D3, and the anode of the third diode D3 is connected to the wake-up pin of the MCU chip 1. Among them, the wake-up pin can be an inherent wake-up pin of the MCU chip 1, or it can be a GPIO pin of the MCU chip 1. The GPIO pin is a general-purpose multi-function pin of the MCU chip 1 and has the function of inputting a wake-up signal. In the embodiment of the present application, the pin of the MCU chip 1 is the GPIO pin, and the GPIO pin is configured to be connected to a high level by default, and the MCU chip 1 in the dormant state can be awakened only when a low level is input to the GPIO pin.
[0033] The WiFi chip is configured to output a high level by default, the third diode D3 cannot be turned on, the GPIO pin of the MCU chip 1 inputs a default high level, and the MCU chip 1 cannot be awakened. When the MCU chip 1 is in sleep mode, the WiFi chip can receive a trigger signal input by an external device and then output a low level. At this time, the cathode of the third diode D3 is a low level, the third diode D3 is turned on, and the anode of the third diode D3 generates a voltage drop. The GPIO pin of the MCU chip 1 inputs a low level, and the MCU chip 1 is awakened.
[0034] The user can send a signal to the WiFi chip through the corresponding electronic device, thereby waking up the MCU chip 1 of the remotely controlled POS machine, enriching the application scenarios of the POS machine.
[0035] Further, refer to Figure 2 and Figure 3 A wake-up circuit further includes: a manual trigger module 6. The input end of the manual trigger module 6 is connected to the manual switch module 2, and the output end of the manual trigger module 6 is connected to the input end of the wake-up module 5. The manual trigger module 6 can receive the start signal output by the manual switch module 2, and output a wake-up signal to the wake-up pin of the MCU chip 1 through the wake-up module 5, so that the MCU chip 1 is awakened from the sleep state. Among them, the wake-up signal is a low level input to the GPIO pin.
[0036] Specifically, refer to Figure 2 and Figure 3 The manual trigger module 6 includes a first transistor Q1, a seventh resistor R7, an eighth resistor R8 and a ninth resistor R9, wherein the first transistor Q1 is an NPN transistor; the wake-up module 5 also includes a first diode D1.
[0037] One end of the seventh resistor R7 is connected to one end of the button switch K1 in the manual switch module 2 connected to the first resistor R1, and the other end of the seventh resistor R7 is connected to one end of the eighth resistor R8, and the other end of the eighth resistor R8 is grounded. One end of the eighth resistor R8 connected to the seventh resistor R7 is connected to the base of the first transistor Q1, the emitter of the first transistor Q1 is grounded, the collector of the first transistor Q1 is connected to the cathode of the first diode D1 in the wake-up module 5, and the collector of the first transistor Q1 is connected in series with the ninth resistor R9 and then connected to the input voltage VDD, and the anode of the first diode D1 is connected to the GPIO pin of the MCU chip 1. Among them, the anode of the first diode D1 and the anode of the third diode D3 can be connected to the same GPIO pin of the MCU chip 1, or each can be connected to a GPIO pin of the MCU chip 1.
[0038] It should be noted that if the anode of the first diode D1 and the anode of the third diode D3 are respectively connected to a GPIO pin of the MCU chip 1, each GPIO pin has the same configuration, that is, they are all connected to a high level by default, and a low level input is required to wake up the MCU chip 1 in the sleep state.
[0039] When the MCU chip 1 is in the dormant state, if the button switch K1 is not turned on at this time, the user can trigger the button switch K1 to turn it on, then the first transistor Q1 is turned on, the collector of the first transistor Q1 generates a voltage drop, that is, the cathode of the first diode D1 is low level, and then the first diode D1 is turned on, and the anode of the first diode D1 generates a voltage drop, the GPIO pin inputs a low level, and the dormant MCU chip 1 can be awakened by the button switch D1 that is triggered by the user. Among them, the awakening signal is the low level input of the GPIO pin.
[0040] Further, refer to Figure 2 and Figure 4 A wake-up circuit also includes: a FUN trigger module 7, wherein the FUN trigger module 7 includes a tenth resistor R10, an eleventh resistor R11, a second capacitor C2 and a button switch K2. One end of the tenth resistor R10 is connected to the input voltage VDD, the other end of the tenth resistor R10 is connected to one end of the eleventh resistor R11, one end of the eleventh resistor R11 is connected to one end of the button switch K2, and the other end of the button switch K2 is grounded. One end of the eleventh resistor R11 connected to the button switch K2 is also connected to one end of the second capacitor C2, and the other end of the second capacitor C2 is grounded.
[0041] Furthermore, if the wake-up pin of the MCU chip 1 is not configured as a default high-level input, the wake-up pin of the MCU chip 1 can also be connected to the connection point of the tenth resistor R10 and the eleventh resistor R11, and VDD provides a high-level input for the wake-up pin of the MCU chip 1 in the default state.
[0042] Furthermore, the wake-up module 5 further includes a second diode D2, an anode of the second diode D2 is connected to the wake-up pin of the MCU, and a cathode of the second diode D2 is connected to one end of the eleventh resistor R11 connected to the button switch K2.
[0043] When the button switch K2 is not turned on, the cathode of the second diode D2 inputs a high level, at this time the second diode D2 is not turned on, and the wake-up pin of the MCU inputs a high level. When the button switch K2 is turned on, the cathode of the second diode D2 inputs a low level, at this time the second diode D2 is turned on, and the anode of the second diode D2 is a low level, that is, the wake-up pin of the MCU inputs a low level, at this time, the MCU chip is awakened.
[0044] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A wake-up circuit, characterized in that: include: Manual switch module (2) and USB startup module (3); A manual switch module (2) is connected to an enable pin of the MCU chip (1), and the manual switch module (2) is capable of outputting an on signal to the enable pin of the MCU chip (1) so that the MCU chip (1) is powered on and started, or outputting an off signal to the enable pin of the MCU chip (1) so that the MCU chip (1) is powered off and shut down; The USB startup module (3) is connected to the enable pin of the MCU chip (1). When the USB startup module (3) is connected to an external power supply voltage, it can output a start signal to the enable pin of the MCU chip (1) so that the MCU chip (1) is powered on and started.
2. A wake-up circuit according to claim 1, characterized in that: Also includes: A WiFi trigger module (4) and a wake-up module (5), wherein the output end of the WiFi trigger module (4) is connected to the input end of the wake-up module (5), and the output end of the wake-up module (5) is connected to the wake-up pin of the MCU chip (1); the WiFi trigger module (4) can receive an external trigger signal and output a wake-up signal to the wake-up pin of the MCU chip (1) through the wake-up module (5), so that the MCU chip (1) is awakened from a dormant state.
3. A wake-up circuit according to claim 2, characterized in that: Also includes: A manual trigger module (6), wherein an input end of the manual trigger module (6) is connected to the manual switch module (2), an output end of the manual trigger module (6) is connected to an input end of the wake-up module (5), and the manual trigger module (6) is capable of receiving a start signal output by the manual switch module (2), and outputting a wake-up signal to a wake-up pin of the MCU chip (1) through the wake-up module (5), so that the MCU chip (1) is awakened from a sleep state.
4. A wake-up circuit according to claim 2, characterized in that: Also includes: A FUN trigger module (7), wherein the output end of the FUN trigger module (7) is connected to the input end of the wake-up module (5), and the FUN trigger module (7) responds to an external trigger and can output a wake-up signal to a wake-up pin of the MCU chip (1) through the wake-up module (5), so that the MCU chip (1) is awakened from a sleep state.
