Awakening device of MCU (Microprogrammed Control Unit) and MCU

By designing a wake-up device for an MCU, using the combination of an isolation module and multiple trigger modules, the problem of MCU wake-up method occupying multiple pin resources in the prior art is solved, and the MCU wake-up function that only occupies one pin is realized. Reduced costs.

CN119473415AInactive Publication Date: 2025-02-18SHENZHEN KTC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411575206.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-02-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The wake-up method of existing MCUs occupies multiple pin resources, resulting in increased pin costs.

Method used

A wake-up device of an MCU is designed, including an isolation module and multiple trigger modules. All trigger modules output the same trigger signal. The isolation module controls the MCU to sleep when receiving any trigger signal, and only occupies one MCU pin.

Benefits of technology

Reduces the use of MCU pin resources, reduces pin costs, and achieves effective wake-up of the MCU.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473415A_ABST
    Figure CN119473415A_ABST
Patent Text Reader

Abstract

The invention discloses an MCU awakening device and an MCU, the MCU awakening device comprises an isolation module and N different trigger modules, the N different trigger modules output trigger signals when awakening conditions are met, the isolation module isolates the multiple trigger signals and transmits the trigger signals to the MCU, and the MCU quits a dormant state when receiving the awakening signals. In the scheme, the trigger signals output by the plurality of trigger modules are the same, the isolation module can perform isolation, the isolation module controls the MCU to retreat sleep when receiving any trigger signal, and the mode only occupies one pin of the MCU, so that the use of MCU pin resources is reduced, and the pin cost is also reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of MCU wake-up, and in particular to an MCU wake-up device and the MCU. Background Art

[0002] Under the advocacy of green living, electronic devices commonly used in people's lives have also turned on energy-saving mode. Specifically, the MCU (Microcontroller Unit) in electronic devices can shut down unused resources according to their own working scenarios and enter sleep mode, at which time the electronic device enters low-power mode. In the prior art, there may be multiple ways for MCU to exit sleep mode, that is, wake up, but each wake-up method occupies a pin of the MCU, resulting in multiple wake-up methods occupying multiple pins of the MCU, occupying more pin resources of the MCU and increasing the pin cost. Summary of the invention

[0003] The purpose of the present invention is to provide an MCU wake-up device and an MCU, wherein the trigger signals output by multiple trigger modules are the same, the isolation module can perform isolation, and the isolation module controls the MCU to exit sleep mode upon receiving any trigger signal. This method only occupies one pin of the MCU, thereby reducing the use of MCU pin resources and also reducing the pin cost.

[0004] In order to solve the above technical problems, the present invention provides a wake-up device for an MCU and the MCU includes an isolation module and N different trigger modules;

[0005] The output ends of the N trigger modules are connected to the N input ends of the isolation module in a one-to-one correspondence, and are all used to output a trigger signal when the wake-up condition is met, and the trigger signals output by the N trigger modules are the same;

[0006] The output end of the isolation module is connected to the MCU, and is used to isolate multiple trigger signals when multiple trigger signals are received, and send a wake-up signal to the MCU when any trigger signal is received, so that the MCU exits sleep when the wake-up signal is received.

[0007] Optionally, the trigger module includes:

[0008] An adapter detection module, wherein the input end of the adapter detection module is used to be connected to the power supply of the adapter, and the output end is connected to the control end of the first switch tube, and is used to control the first switch tube to be disconnected for a preset time when the adapter detection module is connected to the adapter, and to control the first switch tube to be turned on when the adapter is not connected;

[0009] A first switch tube, wherein a first end of the first switch tube is respectively connected to a first end of the first resistor and an input end of the isolation module, and a second end of the first switch tube is grounded, and is used for outputting a trigger signal when the adapter is connected;

[0010] A first resistor, wherein a second end of the first resistor is connected to a power source.

[0011] Optionally, the adapter detection module includes:

[0012] A first capacitor, wherein a first end of the first capacitor is used to be connected to a power supply of the adapter, and a second end of the first capacitor is connected to an input end of the voltage divider module;

[0013] A voltage divider module, a first end of a second resistor at the output end of the voltage divider module;

[0014] A second resistor, a second end of the second resistor is connected to the control end of the second switch tube;

[0015] a second switch tube, wherein a first end of the second switch tube is respectively connected to a first end of the third resistor and a control end of the first switch tube, and a second end of the second switch tube is grounded, and is used to be turned on for a preset time when the adapter detection module is connected to the adapter, and to be turned off when the adapter is not connected;

[0016] A third resistor, a second end of the third resistor is connected to a power source.

[0017] Optionally, the trigger module includes:

[0018] A button, wherein a first end of the button is grounded;

[0019] A key detection module, wherein the input end of the key detection module is connected to the second end of the key, and the output end is connected to the control end of the third switch tube, and is used to control the third switch tube to be disconnected when the user presses the key, and to control the third switch tube to be turned on when the user releases the key;

[0020] a fourth resistor, wherein a first end of the fourth resistor is connected to a power supply, and a second end of the fourth resistor is connected to a first end of the third switch tube;

[0021] The third switch tube has a second end connected to the ground and is used to output a trigger signal when the user presses a button.

[0022] Optionally, the key detection module includes:

[0023] a fifth resistor, wherein a first end of the fifth resistor is connected to a power source, and a second end of the fifth resistor is respectively connected to a second end of the key and a first end of the sixth resistor;

[0024] A sixth resistor, wherein a second end of the sixth resistor is connected to the control end of the third switch tube.

[0025] Optionally, it also includes:

[0026] A second capacitor, wherein a first end of the second capacitor is connected to the second end of the button, and a second end of the second capacitor is grounded.

[0027] Optionally, the trigger module includes:

[0028] A sensor, the output end of which is connected to the input end of the touch control module, and is used to generate a touch signal when a user touches the sensor;

[0029] A touch control module, wherein an output end of the touch control module is respectively connected to the first end of the seventh resistor and the input end of the isolation module, and is used to output a trigger signal when a touch signal is received, and stop outputting the trigger signal when no touch signal is received;

[0030] A seventh resistor, wherein a second end of the seventh resistor is connected to a power supply.

[0031] Optionally, the isolation module includes:

[0032] N diodes, anodes of the N diodes are connected to the output ends of the N trigger modules one by one, cathodes of the N diodes are connected to each other, and a common end of the connections is connected to the MCU.

[0033] In order to solve the above problem, the present invention further provides an electronic device, comprising the above-mentioned MCU wake-up device, wherein the wake-up device is connected to the MCU.

[0034] Optionally, it also includes:

[0035] A third capacitor, wherein a first end of the third capacitor is connected to a power pin of the MCU, and a second end of the third capacitor is grounded.

[0036] The present invention provides an MCU wake-up device and an MCU, comprising an isolation module and N different trigger modules, wherein the N different trigger modules output a trigger signal when a wake-up condition is met, the isolation module isolates multiple trigger signals and transmits the trigger signals to the MCU, and the MCU exits the sleep state when receiving the trigger signal. In this solution, the trigger signals output by the multiple trigger modules are the same, the isolation module can be isolated, and the isolation module controls the MCU to exit the sleep state when receiving any trigger signal. This method only occupies one pin of the MCU, reduces the use of MCU pin resources, and also reduces the pin cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 A schematic diagram of the structure of a wake-up device for an MCU provided by the present invention;

[0039] Figure 2 A flowchart of a MCU wake-up device provided by the present invention;

[0040] Figure 3 A schematic diagram of the structure of a trigger module in a wake-up device for an MCU provided by the present invention;

[0041] Figure 4 A structural schematic diagram of a trigger module in another MCU wake-up device provided by the present invention;

[0042] Figure 5 A structural schematic diagram of a trigger module in another MCU wake-up device provided by the present invention;

[0043] Figure 6 A schematic diagram of an isolation circuit of a wake-up device for an MCU provided by the present invention;

[0044] Figure 7 A circuit diagram of an MCU provided by the present invention. DETAILED DESCRIPTION

[0045] The core of the present invention is to provide an MCU wake-up device and an MCU. The trigger signals output by multiple trigger modules are the same. The isolation module can perform isolation and the isolation module controls the MCU to exit sleep mode when receiving any trigger signal. This method only occupies one pin of the MCU, reduces the use of MCU pin resources, and also reduces the pin cost.

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] Please refer to Figure 1 and Figure 2 , Figure 1 A schematic diagram of the structure of a wake-up device for an MCU provided by the present invention; Figure 2 The present invention provides a flowchart of a wake-up device for an MCU.

[0048] The wake-up device of the MCU3 includes an isolation module 2 and N different trigger modules 1;

[0049] The output ends of the N trigger modules 1 are connected to the N input ends of the isolation module 2 in a one-to-one correspondence, and are all used to output a trigger signal when the wake-up condition is met, and the trigger signals output by the N trigger modules 1 are the same;

[0050] The output end of the isolation module 2 is connected to the MCU3, and is used to isolate multiple trigger signals when multiple trigger signals are received, and send a wake-up signal to the MCU3 when any trigger signal is received, so that the MCU3 exits sleep mode when the wake-up signal is received.

[0051] In the present application, the wake-up device of MCU3 includes N trigger modules 1. When the corresponding wake-up conditions are met, the N trigger modules 1 will send N trigger signals, and these N trigger signals are the same. The isolation module 2 isolates the N trigger signals, and when the isolation module 2 receives any of the N trigger signals, it can send a wake-up signal to MCU3. When MCU3 receives the wake-up signal, it will exit the sleep state.

[0052] Specifically, taking N trigger modules 1 as an example, the first trigger module, the second trigger module and the third trigger module are responsible for receiving and processing the trigger signal of the trigger source. For example, the first trigger module is responsible for receiving and processing the insertion wake-up of the adapter, the second trigger module is responsible for receiving and processing the action wake-up of the button SW, and the third trigger module is responsible for receiving and processing the touch wake-up of the touch screen. These three groups of trigger modules transmit the processed trigger signal to the isolation module 2, and the isolation module 2 is responsible for isolating the received trigger signal. At the same time, the isolation module 2 transmits the trigger signal to MCU3, so that the trigger modules do not affect each other. According to the signal transmitted by the isolation module 2, if the wake-up condition is met, MCU3 exits the deep sleep mode and enters the normal working mode. If the wake-up condition is not met, MCU3 continues to maintain the deep sleep mode.

[0053] It should be noted that the first trigger module can output a trigger signal when the adapter is connected, the second trigger module 12 can output a trigger signal when the user presses the button SW, and the third trigger module 13 can output a trigger signal when the user touches the panel. The isolation module 2 isolates these three trigger signals and outputs them to MCU3. MCU3 exits the sleep state when receiving the trigger signal.

[0054] As can be seen from the above, the trigger signals output by multiple trigger modules are the same, and the N trigger signals can be isolated by the isolation module 2. The isolation module 2 controls the MCU3 to exit sleep mode upon receiving any trigger signal. This method only occupies one pin of the MCU3, reduces the use of the MCU3 pin resources, and also reduces the pin cost.

[0055] Based on the above embodiments:

[0056] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a trigger module in a wake-up device for an MCU provided by the present invention.

[0057] As an optional embodiment, the trigger module includes:

[0058] An adapter detection module, wherein the input end of the adapter detection module is used to be connected to the power supply of the adapter, and the output end is connected to the control end of the first switch tube Q1, and is used to control the first switch tube Q1 to be disconnected for a preset time when the adapter detection module is connected to the adapter, and to control the first switch tube Q1 to be turned on when the adapter is not connected;

[0059] A first switch tube Q1, a first end of which is respectively connected to a first end of the first resistor R1 and an input end of the isolation module 2, and a second end of which is grounded, for outputting a trigger signal when the adapter is connected;

[0060] The first resistor R1 has a second end connected to a power source.

[0061] It can be understood that when the adapter detection module detects that the adapter is connected, it will control the first switch tube Q1 to be disconnected for a preset time. After the first switch tube Q1 is disconnected for a preset time, it will automatically restore to the on state. When the adapter module detects that the adapter is not connected, it controls the first switch tube Q1 to be turned on.

[0062] Specifically, when no adapter is connected, the connected voltage can be regarded as 0, the first switch tube Q1 is turned on, and the voltage between the first end of the first switch tube Q1 and the input end of the isolation module 2 is 0; when the adapter is connected, the adapter detection module controls the first switch tube Q1 to be disconnected. At this time, the input end of the isolation module 2 is pulled up to the power supply voltage by the first resistor R1. At this time, the input end of the isolation module 2 rises from 0 to the power supply voltage, which can be called DC_WAKEUP. Therefore, the trigger module 1 converts the connection of the adapter into a rising edge signal of the voltage at the first end of the first switch tube Q1 from 0 to the MCU_POWER power supply voltage.

[0063] It should be noted that the first switch tube Q1 can be an NPN transistor, the base electrode of the NPN transistor is connected to the first end of the first resistor R1, the base is connected to the output end of the adapter detection module, and the emitter is grounded. In addition, the NPN transistor has the advantages of long life, safety and reliability, and fast switching speed.

[0064] It can be seen that the adapter detection module can control the first switch tube Q1 to be disconnected for a preset time by connecting the adapter, and then the first switch tube Q1 is turned on again, converting the connection of the adapter into a rising edge signal from 0 to the power supply voltage, that is, an output trigger signal.

[0065] As an optional embodiment, the adapter detection module includes:

[0066] A first capacitor C1, wherein a first end of the first capacitor C1 is connected to a power supply of the adapter, and a second end of the first capacitor C1 is connected to an input end of the voltage divider module 4;

[0067] A voltage dividing module 4, wherein an output end of the voltage dividing module 4 is connected to a first end of a second resistor R2;

[0068] A second resistor R2, a second end of the second resistor R2 is connected to the control end of the second switch tube Q2;

[0069] a second switch tube Q2, wherein a first end of the second switch tube Q2 is respectively connected to a first end of the third resistor R3 and a control end of the first switch tube Q1, and a second end of the second switch tube Q2 is grounded, and is used to be turned on for a preset time when the adapter detection module is connected to the adapter, and to be turned off when the adapter is not connected;

[0070] The third resistor R3 has a second end connected to a power source.

[0071] It can be understood that when no adapter is connected, the second switch tube Q2 is disconnected, the first switch tube Q1 is turned on, and the voltage at the first end of the first switch tube Q1 is 0V; when the adapter is connected, the voltage at the input end of the adapter detection module changes from 0 to the power supply voltage of the adapter, the first capacitor C1 will be charged, the first capacitor C1 will be turned on, and the voltage controls the second switch tube Q2 to be turned on through the voltage divider module 4. Since the first end of the second switch tube Q2 is connected to the control end of the first switch tube Q1, the first switch tube Q1 is disconnected, and at this time, the voltage at the first end of the first switch tube Q1 rises from 0 to the MCU_POWER power supply voltage. When the first capacitor C1 is fully charged, it is in the cut-off state, that is, the circuit-breaking state, and the voltage output of the voltage divider module 4 is 0. Therefore, the trigger module 1 converts the connection of the adapter into a rising edge signal from 0 to MCU_POWER at the first end of the first switch tube Q1.

[0072] It should be noted that the voltage divider module 4 includes a first voltage divider resistor R41 and a second voltage divider resistor R42. The first end of the first voltage divider resistor R41 is connected to the second end of the first capacitor C1, and the second end is connected to the first end of the second voltage divider resistor R42; the second end of the second voltage divider resistor R42 is grounded. When the adapter is connected, the first capacitor C1 is charged, and the first voltage divider resistor R41 is connected to the second voltage divider resistor R42.

[0073] In addition, when no adapter is connected, the second voltage-dividing resistor R42 pulls the input voltage down to the ground by default to prevent current fluctuations in the circuit from interfering with the second switch tube Q2 and causing the second switch tube Q2 to malfunction.

[0074] It should also be noted that the second switch tube Q2 can be an NPN type transistor, the collector of the NPN type transistor is respectively connected to MCU_POWER and the control end of the first switch tube Q1, the base is connected to the second end of the second resistor R2, and the emitter is grounded. In addition, the NPN type transistor has a long life, is safe and reliable, and has a fast switching speed.

[0075] It can be seen that the first capacitor C1, the voltage divider module 4, the second resistor R2 and the third resistor R3 cooperate with the second switch tube Q2 to control the first switch tube Q1 to be turned on for a preset time when the adapter is connected, and to restore the disconnection after the preset time, so as to output a trigger signal. The isolation module 2 outputs the trigger signal to MCU3, and MCU3 exits the sleep state when receiving the trigger signal.

[0076] Please refer to Figure 4 , Figure 4 A schematic diagram of the structure of a trigger module in another MCU wake-up device provided by the present invention.

[0077] As an optional embodiment, the trigger module includes:

[0078] A key SW, a first end of the key SW is grounded;

[0079] A key detection module, wherein the input end of the key detection module is connected to the second end of the key SW, and the output end is connected to the control end of the third switch tube Q3, and is used to control the third switch tube Q3 to be disconnected when the user presses the key SW, and to control the third switch tube Q3 to be turned on when the user releases the key SW;

[0080] A fourth resistor R4, wherein a first end of the fourth resistor R4 is connected to a power source, and a second end of the fourth resistor R4 is connected to a first end of the third switch tube Q3;

[0081] The third switch tube Q3 has a second end connected to the ground, and is used to output a trigger signal when the user presses the button SW.

[0082] It should be noted that the button SW is a touch switch. When the button SW is pressed, the spring inside the button SW receives external force and deforms and contacts the circuit, so that a path is formed between the button SW and the circuit, thereby realizing the on-state of the circuit. When the external force is removed, the spring inside the button SW returns to its original state and is disconnected from the circuit, and the circuit is in an off-state.

[0083] It can be understood that when the user does not press the key SW, the key detection module controls the third switch tube Q3 to be turned on, and the voltage of the first end KEY_WAKEUP of the third switch tube Q3 is 0. When the user presses the key SW, the key detection module controls the third switch tube Q3 to be turned off, and the voltage of the first end KEY_WAKEUP of the third switch tube Q3 rises from 0 to the MCU_POWER power supply voltage, and the trigger module 1 converts the pressing action of the key SW into a rising edge signal of KEY_WAKEUP from 0 to MCU_POWER.

[0084] Specifically, when the user does not press the key SW, the key detection module controls the third switch tube Q3 to turn on, and MCU_POWER is grounded to the third switch tube Q3 through the fourth resistor R4. At this time, the voltage of KEY_WAKEUP is 0; when the user presses the key SW, the first end of the key SW is grounded, and the key detection module controls the third switch tube Q3 to turn off, and the voltage of KEY_WAKEUP is converted into the MCU_POWER power supply voltage through the fourth resistor R4. The trigger module converts the pressing action of the key SW into a rising edge signal of KEY_WAKEUP from 0 to MCU_POWER, so the trigger module outputs a trigger signal.

[0085] It should also be noted that the third switch tube Q3 can be an NPN transistor, the collector of the NPN transistor is respectively connected to the first end of the fourth resistor R4 and the input end of the isolation module 2, the base is connected to the output end of the key detection module, and the emitter is grounded.

[0086] It can be seen that the user controls the conduction and disconnection of the third switch tube Q3 through the key detection module to realize whether the trigger module outputs a trigger signal. When the key SW is pressed, the trigger module outputs a trigger signal, and MCU3 exits the sleep state. After the key SW is pressed for a preset time, the spring inside the key SW returns to its original state, the trigger module does not output a trigger signal, and MCU3 enters deep sleep. This method of controlling the wake-up of the MCU by key operation is more convenient.

[0087] As an optional embodiment, the key detection module includes:

[0088] a fifth resistor R5, wherein a first end of the fifth resistor R5 is connected to a power source, and a second end of the fifth resistor R5 is respectively connected to a second end of the key SW and a first end of a sixth resistor R6;

[0089] A sixth resistor R6, a second end of the sixth resistor R6 is connected to the control end of the third switch tube Q3.

[0090] It can be understood that when the key SW is not pressed, the control end of the third switch tube Q3 is pulled up to the power supply by the fifth resistor R5. At this time, the third switch tube Q3 is in the on state, and the fourth resistor R4 is grounded through the third switch tube Q3. Therefore, the voltage of the first end KEY_WAKEUP of the third switch tube Q3 is 0; when the key SW is pressed, the spring inside the key SW forms a path with the circuit. Since the first end of the key SW is grounded, the voltage of the control end of the third switch tube Q3 is 0, and the second end of the third switch tube Q3 is grounded. At this time, the third switch tube Q3 is in the off state, so the voltage of the first end of the third switch tube Q3, that is, the input end of the isolation module 2 is the voltage of KEY_WAKEUP, and the trigger module converts the pressing action of the key SW into a rising edge signal of 0 to the MCU_POWER power supply voltage.

[0091] In addition, a sixth resistor R6 is also provided at the control end of the third switch tube Q3. Both the fifth resistor R5 and the sixth resistor R6 can limit the current, thereby effectively preventing the branch where the sixth resistor R6 is located from being overcurrent and burning out other components.

[0092] It can be seen that the fifth resistor R5 is set between the power supply voltage and the third switch tube Q3, and the control end of the third switch tube Q3 can be pulled up to the power supply. When the button SW is not pressed, the third switch tube Q3 is controlled to be turned on. The fifth resistor R5 and the sixth resistor R6 can limit the current to prevent the third switch tube Q3 from burning out due to excessive current.

[0093] As an optional embodiment, it also includes:

[0094] A second capacitor C2, wherein a first end of the second capacitor C2 is connected to a second end of the key SW, and a second end of the second capacitor C2 is grounded.

[0095] Taking into account the problem of multiple short-term state changes, that is, jitter problems, caused by the elastic effect of the mechanical contacts during the process of pressing and releasing the key SW, which may lead to system misjudgment, the present application sets a second capacitor C2 at the second end of the key SW, and the second end of the second capacitor C2 is grounded. By utilizing the delay characteristics of charging and discharging of the second capacitor C2, the jitter level during the process of pressing and releasing the key SW can be absorbed and eliminated, thereby achieving the effect of de-jittering.

[0096] Please refer to Figure 5 , Figure 5 A schematic diagram of the structure of a trigger module in another MCU wake-up device provided by the present invention.

[0097] As an optional embodiment, the trigger module includes:

[0098] A sensor, the output end of which is connected to the input end of the touch control module, and is used to generate a touch signal when a user touches the sensor;

[0099] A touch control module, wherein the output end of the touch control module is respectively connected to the first end of the seventh resistor R7 and the input end of the isolation module 2, and is used to output a trigger signal when a touch signal is received, and stop outputting the trigger signal when no touch signal is received;

[0100] A seventh resistor R7, a second end of the seventh resistor R7 is connected to a power source.

[0101] It can be understood that when there is no trigger action on the touch panel, the sensor does not receive the touch signal, and the touch module does not receive the touch signal. At this time, the output voltage of the touch module is 0. When a touch signal occurs on the touch panel, the sensor can receive the touch signal, convert the received touch signal into a touch signal and transmit it to the touch module. When the touch module receives the touch signal and confirms that it is a wake-up action, the output voltage of the touch module is the TP_WAKEUP voltage. Therefore, the TP_WAKEUP voltage at the output end of the touch module rises from 0 to the MCU_POWER power supply voltage, which can be considered as an output trigger signal.

[0102] Specifically, when there is no triggering action on the touch panel, the output end of the touch module, that is, the GPIO pin, outputs a low level by default, and the voltage is 0; when a touch action occurs on the touch panel, the sensor converts the received touch signal into an electrical signal and transmits it to the touch module. When the touch module receives the touch signal and confirms it as a wake-up signal, the working mode of the touch module is open drain mode, and the GPIO port of the touch module is an open drain output pin. The open drain output high level requires an external pull-up power supply. At this time, the seventh resistor R7 can cooperate with the GPIO port of the touch module to output a high level, that is, the output touch signal voltage is MCU_POWER, and the voltage of TP_WAKEUP rises from 0 to the MCU_POWER power supply voltage, which is the trigger signal.

[0103] It can be seen that by touching the touch panel, it can be determined whether the trigger module outputs a trigger signal. When the touch panel receives a touch signal, the trigger signal can be output through the sensor and the touch module, and then output to MCU3 through the isolation module 2. MCU3 can then exit the sleep state. After a preset period of time, if the touch panel does not receive a touch signal, it will not output a trigger signal and MCU3 will enter a deep sleep state.

[0104] Please refer to Figure 6 , Figure 6 A schematic diagram of an isolation circuit of a wake-up device for an MCU provided by the present invention.

[0105] As an optional embodiment, the isolation module 2 includes:

[0106] There are N diodes, anodes of the N diodes are connected to the output ends of the N trigger modules 1 one by one, cathodes of the N diodes are connected to each other and a common end thereof is connected to the MCU3.

[0107] It is understandable that the diode can be a Schottky diode, and the isolation module 2 is composed of N diodes that cooperate with each other to perform isolation work. Specifically, the N trigger signals output from the trigger module are respectively sent through N diodes. Among them, due to the isolation of the diodes, the trigger signals of each channel do not affect each other. The isolation module 2 transmits any trigger signal, that is, the rising edge signal of the voltage 0 to MCU_POWER to MCU3, so that MCU3 exits the deep sleep mode.

[0108] Specifically, the diode can be a Schottky diode. Taking the first trigger module 11, the second trigger module 12 and the third trigger module 13 as examples, the three trigger modules respectively output trigger signals through the first Schottky diode D1, the second Schottky diode D2 and the third Schottky diode D3. Due to the isolation of the three Schottky diodes, the three trigger signals will not affect each other, and any trigger signal can make MCU3 exit sleep mode.

[0109] It can be seen that the isolation module 2 can isolate the N trigger signals output from the N trigger modules 1, and can output any trigger signal to the MCU3, which can make the MCU3 exit the sleep mode. In addition, the Schottky diode also has the characteristics of low power consumption and ultra-high speed.

[0110] The present invention also provides an electronic device, including a wake-up device for the MCU3 as described above, the wake-up device is connected to the MCU3, please refer to Figure 7 , Figure 7 A circuit diagram of an MCU provided by the present invention.

[0111] It can be understood that the wake-up pin WAKEUP of the deep sleep mode of MCU3 is connected to the output terminal MCU_WAKEUP of the isolation module 2. The deep sleep wake-up condition of MCU3 is the rising edge signal of the pin WAKEUP from 0 to VDD. When the pin WAKEUP receives the rising edge signal from 0 to VDD, MCU3 exits the deep sleep mode and enters the normal working mode.

[0112] It should be noted that the present invention can be applied to various electronic products with MCU3, especially products with high power consumption requirements.

[0113] It should also be noted that in order to achieve lower power consumption, MCU3 shuts down its internal non-essential power domains, internal high-speed clock, external high-speed clock, and phase-locked loop controller, etc., and only retains some wake-up methods for exiting deep sleep mode.

[0114] It can be seen that the present invention realizes the sleep awakening of MCU3 by multiple wake-up sources through the design of trigger module and isolation circuit, and only occupies one WKUP pin resource of MCU3, so that MCU3 can be awakened to exit deep sleep mode and enter normal working mode in various scenarios. While realizing the function, the cost of the product is reduced.

[0115] As an optional embodiment, it also includes:

[0116] A third capacitor C, a first end of the third capacitor C is connected to a power pin of the MCU3, and a second end of the third capacitor C is grounded.

[0117] In this application, considering that there are clutter and high-frequency noise in actual applications, which may affect the normal operation of MCU3, this application sets a third capacitor C to filter out high-frequency noise and interference on the power supply of MCU3 and stabilize the power supply of MCU3 to ensure the normal operation of MCU3.

[0118] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0119] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A wake-up device for MCU, characterized in that: It includes an isolation module and N different trigger modules; The output ends of the N trigger modules are connected to the N input ends of the isolation module in a one-to-one correspondence, and are all used to output a trigger signal when a wake-up condition is met, and the trigger signals output by the N trigger modules are the same; The output end of the isolation module is connected to the MCU, and is used to isolate the multiple trigger signals when multiple trigger signals are received, and send a wake-up signal to the MCU when any of the trigger signals is received, so that the MCU exits sleep mode when the wake-up signal is received.

2. The MCU wake-up device as claimed in claim 1, characterized in that: The trigger module comprises: An adapter detection module, wherein the input end of the adapter detection module is used to be connected to the power supply of the adapter, and the output end is connected to the control end of the first switch tube, and is used to control the first switch tube to be disconnected for a preset time when the adapter detection module is connected to the adapter, and to control the first switch tube to be turned on when the adapter is not connected; The first switch tube, wherein the first end of the first switch tube is respectively connected to the first end of the first resistor and the input end of the isolation module, and the second end is grounded, and is used to output a trigger signal when the adapter is connected; The first resistor, a second end of the first resistor is connected to a power source.

3. The MCU wake-up device as claimed in claim 2, characterized in that: The adapter detection module comprises: A first capacitor, wherein a first end of the first capacitor is used to be connected to a power supply of the adapter, and a second end of the first capacitor is connected to an input end of a voltage divider module; The voltage divider module, wherein the output end of the voltage divider module is connected to the first end of the second resistor; The second resistor, a second end of the second resistor is connected to the control end of the second switch tube; The second switch tube, wherein the first end of the second switch tube is respectively connected to the first end of the third resistor and the control end of the first switch tube, and the second end is grounded, and is used to be turned on for a preset time when the adapter detection module is connected to the adapter, and turned off when the adapter is not connected; The third resistor, a second end of the third resistor is connected to the power supply.

4. The MCU wake-up device as claimed in claim 1, characterized in that: The trigger module comprises: A button, wherein a first end of the button is grounded; A key detection module, wherein the input end of the key detection module is connected to the second end of the key, and the output end is connected to the control end of the third switch tube, and is used to control the third switch tube to be disconnected when the user presses the key, and to control the third switch tube to be turned on when the user releases the key; a fourth resistor, wherein a first end of the fourth resistor is connected to a power supply, and a second end of the fourth resistor is connected to a first end of the third switch tube; The third switch tube, the second end of the third switch tube is grounded, and is used to output a trigger signal when the user presses a key.

5. The MCU wake-up device as claimed in claim 4, characterized in that: The key detection module comprises: The fifth resistor, wherein the first end of the fifth resistor is connected to the power supply, and the second end of the fifth resistor is respectively connected to the second end of the button and the first end of the sixth resistor; The sixth resistor, a second end of the sixth resistor is connected to the control end of the third switch tube.

6. The MCU wake-up device as claimed in claim 5, characterized in that: Also includes: The second capacitor has a first end connected to the second end of the button and a second end connected to the ground.

7. The MCU wake-up device as claimed in claim 1, characterized in that: The trigger module comprises: A sensor, wherein an output terminal of the sensor is connected to an input terminal of the touch control module and is used to generate a touch signal when a user touches the sensor; The touch control module, wherein the output end of the touch control module is respectively connected to the first end of the seventh resistor and the input end of the isolation module, and is used to output a trigger signal when the touch signal is received, and stop outputting the trigger signal when the touch signal is not received; The seventh resistor, a second end of the seventh resistor is connected to the power supply.

8. The MCU wake-up device according to any one of claims 1 to 7, characterized in that: The isolation module comprises: N diodes, anodes of the N diodes are connected to the output ends of the N trigger modules one by one, cathodes of the N diodes are connected to each other and a common end thereof is connected to the MCU.

9. An electronic device, characterized in that: The invention comprises an MCU and a wake-up device for the MCU as claimed in any one of claims 1 to 8, wherein the wake-up device is connected to the MCU.

10. The electronic device according to claim 9, characterized in that: Also includes: A third capacitor, wherein a first end of the third capacitor is connected to a power pin of the MCU, and a second end of the third capacitor is grounded.