A USB compatible single chip microcomputer wake-up device

By designing a USB-compatible microcontroller wake-up device, using the combination of AND gate, inverter and switch, the microcontroller supports GPIO wake-up and USB wake-up on one IO port, solving the problem of increased hardware costs and meeting the diversity of wake-up methods and convenience.

CN118244669BActive Publication Date: 2024-11-08SIGAS MEASUREMENT ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410335309.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2024-11-08
Estimated Expiration
2044-03-22

AI Technical Summary

Technical Problem

When microcontrollers use GPIO wake-up and USB wake-up modes, they need to use two IO ports, resulting in increased hardware costs.

Method used

A USB-compatible microcontroller wake-up device is designed. Through the combination of AND gate, inverter and switch, a single IO port is used to realize GPIO wake-up and USB wake-up modes, reducing the use of IO port.

Benefits of technology

GPIO wake-up and USB wake-up can be achieved through one IO port, reducing hardware costs and meeting the diversity and convenience of wake-up methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118244669B_ABST
    Figure CN118244669B_ABST
Patent Text Reader

Abstract

The present application provides a USB-compatible single-chip microcomputer wake-up device, which relates to the technical field of single-chip microcomputer wake-up devices. The USB-compatible single-chip microcomputer wake-up device includes: an AND gate, the output end of the AND gate is connected to the IO port of the single-chip microcomputer; a first inverter, the first inverter is electrically connected to the first input end of the AND gate, and the first inverter is used to flip the high level output by the first high-level power supply end into a low level; a second inverter, the second inverter is electrically connected to the second input end of the AND gate, and the second inverter is used to flip the high level output by the first high-level power supply end into a low level; a switch, the switch is used to electrically connect the first inverter to the second high-level power supply end; a USB connection end, the USB connection end is used to electrically connect the second inverter to the USB power supply end. Two wake-up modes, GPIO wake-up and USB wake-up, can be realized through one IO port, and the hardware cost is controlled under the premise of meeting the diversity and convenience of the wake-up methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of single-chip microcomputer wake-up devices, and in particular to a single-chip microcomputer wake-up device compatible with USB. Background Art

[0002] A single-chip microcomputer (MCU) is an integrated circuit chip that uses very large-scale integrated circuit technology to integrate a central processing unit CPU with data processing capabilities, random access memory RAM, read-only memory ROM, multiple I / O ports and interrupt systems, timers / counters and other functions into a small and complete microcomputer system on a silicon chip. It is widely used in the field of industrial control.

[0003] The sleep and wake-up function of the microcontroller is an effective energy-saving solution and is widely adopted in the application of embedded systems. As the power consumption requirements of electronic products become more and more stringent, more and more microcontrollers have sleep and wake-up functions. In some portable product applications, the use of microcontrollers with sleep and wake-up functions can reduce product power consumption and extend battery life.

[0004] At present, common wake-up sources for MCU low-power mode include GPIO wake-up, RTC wake-up, and USB wake-up. In order to improve the diversity and convenience of wake-up methods, it is usually necessary to use both GPIO wake-up and USB wake-up modes at the same time. Since both GPIO wake-up and USB wake-up modes are used at the same time, the MCU needs to use two IO ports. However, for a MCU system, the more IO ports a MCU has, the more expensive the MCU is. Therefore, when both GPIO wake-up and USB wake-up modes are used at the same time, a higher-specification MCU with more IO ports is required, which increases the hardware cost. Summary of the invention

[0005] The purpose of the present application is to provide a USB-compatible single-chip microcomputer wake-up device, which is used to solve the problem of increased cost caused by the need to use two IO ports when the single-chip microcomputer adopts two wake-up modes, namely GPIO wake-up and USB wake-up, in the related art.

[0006] The present application provides a USB-compatible single-chip microcomputer wake-up device that adopts the following technical solution:

[0007] A USB-compatible single-chip microcomputer wake-up device, comprising:

[0008] An AND gate, wherein the first input terminal and the second input terminal of the AND gate are electrically connected to the first high-level power supply terminal respectively, and the output terminal of the AND gate is connected to the IO port of the single-chip microcomputer;

[0009] A first inverter, the first inverter is electrically connected to the first input terminal of the AND gate, and the first inverter is used to flip the high level output by the first high level power supply terminal into a low level;

[0010] A second inverter, the second inverter is electrically connected to the second input terminal of the AND gate, and the second inverter is used to flip the high level output by the first high level power supply terminal into a low level;

[0011] a switch, the switch being connected to the first inverter, and the switch being used to electrically connect the first inverter to a second high-level power supply terminal;

[0012] A USB connection end, the USB connection end is connected to the second inverter, and the USB connection end is used to electrically connect the second inverter to the USB power supply end.

[0013] By adopting the above technical solution, when the switch is not closed, the first inverter is not electrically connected to the second high-level power supply terminal, the first inverter does not work, at this time, the first input terminal of the AND gate inputs a high level, when the USB connection terminal is not electrically connected to the USB power supply terminal, the second inverter is not electrically connected to the USB power supply terminal, the second inverter does not work, at this time, the second input terminal of the AND gate inputs a high level, so the output terminal of the AND gate outputs a high level, and the single-chip microcomputer is in a dormant state. When the switch is closed, the first inverter flips the high level output by the first high-level power supply terminal into a low level, and the first input terminal of the AND gate inputs a low level. At this time, no matter whether the second input terminal of the AND gate inputs a high level or a low level, the output terminal of the AND gate outputs a low level, and the single-chip microcomputer is awakened from the dormant state. When the USB connection terminal is electrically connected to the USB power supply terminal, the second inverter flips the high level output by the first high-level power supply terminal into a low level, and the second input terminal of the AND gate inputs a low level. At this time, no matter whether the first input terminal of the AND gate inputs a high level or a low level, the output terminal of the AND gate outputs a low level, and the single-chip microcomputer is awakened from the dormant state. Furthermore, two wake-up modes, GPIO wake-up and USB wake-up, can be realized through one IO port, so that the hardware cost can be controlled under the premise of meeting the diversity and convenience of the wake-up methods.

[0014] Optionally, it also includes an eighth resistor, the first inverter includes a first resistor, a third resistor, a fourth resistor and a first transistor, one end of the fourth resistor is connected to the first high-level power supply end, the other end of the fourth resistor is connected to the first input end of the AND gate, the collector of the first transistor is connected to the first input end of the AND gate, the emitter of the first transistor is grounded, one end of the switch is connected to the second high-level power supply end, the two ends of the first resistor are respectively connected to the base of the first transistor and the other end of the switch, the two ends of the third resistor are respectively connected to the base and the emitter of the first transistor, one end of the eighth resistor is connected to the first input end of the AND gate, and the other end of the eighth resistor is grounded.

[0015] By adopting the above technical solution, when the switch is not closed, the first triode is not turned on, and the first input terminal of the AND gate inputs a high level. When the switch is closed, the base of the first triode is electrically connected to the second high-level power supply terminal, and the first triode is turned on, thereby flipping the high level output by the first high-level power supply terminal to a low level, so that the first input terminal of the AND gate inputs a low level.

[0016] Optionally, it also includes a ninth resistor, and the second inverter includes a second resistor, a fifth resistor, a sixth resistor and a second transistor, one end of the fifth resistor is connected to the first high-level power supply end, the other end of the fifth resistor is connected to the second input end of the AND gate, the collector of the second transistor is connected to the second input end of the AND gate, the emitter of the second transistor is grounded, the two ends of the second resistor are respectively connected to the base of the second transistor and the USB connection end, the two ends of the sixth resistor are respectively connected to the base and the emitter of the second transistor, one end of the ninth resistor is connected to the second input end of the AND gate, and the other end of the ninth resistor is grounded.

[0017] By adopting the above technical solution, when the USB connection end is not electrically connected to the USB power supply end, the second transistor is not turned on, and a high level is input to the second input end of the AND gate. When the USB connection end is electrically connected to the USB power supply end, the base of the second transistor is electrically connected to the USB power supply end, and the second transistor is turned on, thereby flipping the high level output by the first high-level power supply end into a low level, so that a low level is input to the second input end of the AND gate.

[0018] Optionally, the switch includes a base, a first splitting and combining component and a wiring terminal, the first splitting and combining component includes a first switch seat, a first moving contact and a first static contact, the first switch seat is detachably connected to the base, the first moving contact and the first static contact are arranged on the first switch seat, the first moving contact can contact the first static contact, the wiring terminal is arranged on the base, the first static contact is detachably electrically connected to the wiring terminal, and the wiring terminal is electrically connected to the first resistor and the second high-level power supply terminal, respectively.

[0019] By adopting the above technical solution, the first switch seat and the base are arranged to be detachably connected, and the first static contact and the terminal are detachably electrically connected. Therefore, when the first splitting and combining component has a fault such as wear of the first moving contact and the first static contact and needs to be replaced, the first switch seat can be disassembled and separated from the base and the first splitting and combining component can be replaced.

[0020] Optionally, the first separation and combination component also includes a first button and a first spring, the first button is slidably arranged on the first switch seat, the first moving contact is fixedly connected to the first button, the first static contact is fixedly arranged on the first switch seat, a first limit plate is provided on the first button, and a first limit groove is provided on the first switch seat, the first spring is sleeved on the outside of the first button, and two ends of the first spring are respectively abutted against end faces of the first limit plate and the first limit groove.

[0021] By adopting the above technical solution, when the first button is pressed, the first moving contact can be pushed to contact the first static contact, so that the switch is closed, and the first resistor and the second high-level power supply terminal are electrically connected, so that the high level output by the first high-level power supply terminal can be flipped to a low level.

[0022] Optionally, the switch also includes a connecting assembly, wherein the first switch seat is threadedly connected to the base, and the connecting assembly includes a sliding seat, a rotating seat, a conductive ring, a first conductive column and a second elastic member, the sliding seat is slidably arranged on the base, the second elastic member is arranged on the base and acts on the sliding seat, the rotating seat is rotatably connected to the sliding seat, the conductive ring is fixed on the rotating seat, the conductive ring is detachably electrically connected to the first static contact, the first conductive column is fixed to the sliding seat, the first conductive column is slidably electrically connected to the wiring terminal, and is rotatably electrically connected to the conductive ring.

[0023] By adopting the above technical solution, the conductive ring and the first stationary contact are set to be detachably electrically connected, the first conductive column and the terminal are slidingly electrically connected, and the first conductive column and the conductive ring are rotationally electrically connected. Therefore, when the first switch seat is screwed and installed on the base by twisting the first switch seat, the first stationary contact can be electrically connected to the terminal at the same time.

[0024] Optionally, the wiring terminal is provided with a pair of first conductive clamps, the pair of first conductive clamps are in sliding contact with the two side walls of the first conductive column, the first conductive column is provided with a pair of conductive springs, the conductive springs are in sliding contact with the outer peripheral wall of the conductive ring, the rotating seat is provided with a conductive rod, the first static contact is provided with a groove, the conductive rod is electrically connected to the conductive ring, and the conductive rod can be electrically connected to the first static contact through the groove.

[0025] By adopting the above technical solution, the first conductive column can be slidably connected to the terminal by the pair of first conductive clamps slidingly contacting the two side walls of the first conductive column, and the first conductive column can be rotatably connected to the conductive ring by the conductive spring sheet slidingly contacting the outer peripheral wall of the conductive ring.

[0026] Optionally, it also includes a second splitting and combining component, which includes a second switch seat, a second moving contact and a second static contact. The second switch seat is slidably arranged on the base, and the second moving contact and the second static contact are arranged on the second switch seat. The second moving contact can contact the second static contact, and the second static contact is electrically connected to the wiring terminal in a sliding manner. The slide seat is connected to the second switch seat through a linkage member. When the slide seat slides relative to the base, the second switch seat can be driven to slide relative to the base through the linkage member.

[0027] By adopting the above technical solution, when the first splitting and combining component is disassembled and separated from the base and a new first splitting and combining component has not yet been installed, the second splitting and combining component can temporarily replace the first splitting and combining component, thereby avoiding the situation where the switch cannot be closed during the process of replacing the first splitting and combining component.

[0028] Optionally, the linkage member includes a first rack, a first rotating shaft, a second rotating shaft and a second rack, the first rack is fixedly connected to the sliding seat, the first rotating shaft and the second rotating shaft are rotatably arranged on the base, the first rotating shaft is provided with a first gear and a worm, the first gear is meshed with the first rack, the second rotating shaft is provided with a worm wheel and a second gear, the worm wheel is meshed with the worm, and the second rack is fixedly connected to the second switch seat and meshed with the second gear.

[0029] By adopting the above technical solution, in the process of disassembling and separating the first separation assembly from the base, when the first switch seat is separated from the base, the slide seat slides relative to the base under the elastic force of the second elastic member, and then the first rack drives the first gear, the first rotating shaft and the worm to rotate, and then the worm drives the worm wheel, the second rotating shaft and the second gear to rotate, and then the interaction between the second gear and the second rack can drive the second switch seat to slide relative to the base, so that the second separation assembly can be moved to a position convenient for operation to realize the closing operation of the switch.

[0030] Optionally, the second separation and combination component also includes a second button and a third spring, the second button is slidably arranged on the second switch seat, the second moving contact is fixedly connected to the second button, the second static contact is fixedly arranged on the second switch seat, the second button is provided with a second limit plate, the second switch seat is provided with a second limit groove, the two ends of the third spring are respectively abutted against the end faces of the second limit plate and the second limit groove, the connecting terminal is provided with a pair of second conductive clamping plates, the second static contact is provided with a second conductive column, and the pair of second conductive clamping plates are respectively in sliding contact with the two side walls of the second conductive column.

[0031] By adopting the above technical solution, by pressing the second button, the second moving contact can be driven to move toward the second static contact, so that the second moving contact contacts the second static contact, thereby realizing the closing operation of the switch after the first splitting and combining component is disassembled and separated from the base and before the new first splitting and combining component is installed.

[0032] In summary, the present application includes at least one of the following beneficial technical effects: when the switch is not closed, the first inverter is not electrically connected to the second high-level power supply terminal, the first inverter does not work, at this time, the first input terminal of the AND gate inputs a high level, when the USB connection terminal is not electrically connected to the USB power supply terminal, the second inverter is not electrically connected to the USB power supply terminal, the second inverter does not work, at this time, the second input terminal of the AND gate inputs a high level, so the output terminal of the AND gate outputs a high level, and the single-chip microcomputer is in a dormant state. When the switch is closed, the first inverter flips the high level output by the first high-level power supply terminal into a low level, and the first input terminal of the AND gate inputs a low level. At this time, no matter whether the second input terminal of the AND gate inputs a high level or a low level, the output terminal of the AND gate outputs a low level, and the single-chip microcomputer is awakened from a dormant state. When the USB connection terminal is electrically connected to the USB power supply terminal, the second inverter flips the high level output by the first high-level power supply terminal into a low level, and the second input terminal of the AND gate inputs a low level. At this time, no matter whether the first input terminal of the AND gate inputs a high level or a low level, the output terminal of the AND gate outputs a low level, and the single-chip microcomputer is awakened from a dormant state. Furthermore, two wake-up modes, GPIO wake-up and USB wake-up, can be realized through one IO port, so that the hardware cost can be controlled under the premise of meeting the diversity and convenience of the wake-up methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A circuit diagram of a USB-compatible single-chip microcomputer wake-up device in Embodiment 1 of the present application;

[0034] Figure 2 This is a schematic diagram of the structure of the switch in Example 2 of the present application;

[0035] Figure 3A cross-sectional view of the switch in Embodiment 2 of the present application from a first viewing angle;

[0036] Figure 4 for Figure 3 A partial enlarged schematic diagram of the middle M part;

[0037] Figure 5 A cross-sectional view of the switch in Embodiment 2 of the present application from a second viewing angle;

[0038] Figure 6 for Figure 5 A partial enlarged schematic diagram of the middle T part;

[0039] Figure 7 A cross-sectional view of the switch in Embodiment 2 of the present application from a third viewing angle;

[0040] Figure 8 for Figure 7 A local enlarged schematic diagram of the N part;

[0041] Fig. 9 This is a cross-sectional view of the switch at the fourth viewing angle in Example 2 of the present application.

[0042] Description of reference numerals:

[0043] SW1, switch; U1, AND gate; R1, first resistor; R2, second resistor; R3, third resistor; R4, fourth resistor; R5, fifth resistor; R6, sixth resistor; R7, seventh resistor; R8, eighth resistor; R9, ninth resistor; Q1, first transistor; Q2, second transistor; C1, first capacitor; A, first input terminal; B, second input terminal; D, third input terminal; X, output terminal; V1, first high-level power supply terminal; V2, second high-level power supply terminal; V3, third high-level power supply terminal; VBUS, USB power supply terminal; F, USB connection terminal;

[0044] 10. Base; 11. Threaded hole;

[0045] 20. First opening and closing assembly; 21. First switch seat; 211. First limiting groove; 22. First moving contact; 23. First stationary contact; 231. Groove; 24. First button; 241. First limiting plate; 25. First spring;

[0046] 30. Terminal block; 31. First conductive frame; 311. First conductive clamping plate; 32. Second conductive frame; 321. Second conductive clamping plate; 33. Second connecting plate;

[0047] 40. Connecting assembly; 41. Sliding seat; 42. Rotating seat; 421. Cylinder; 422. Conductive rod; 423. First connecting plate; 43. Conductive ring; 44. First conductive column; 441. Conductive spring; 45. Second spring;

[0048] 60, second splitting and closing assembly; 61, second switch seat; 611, second limiting groove; 62, second moving contact; 63, second static contact; 631, second conductive column; 64, second button; 641, second limiting plate; 65, third spring;

[0049] 70. Linkage member; 71. First rack; 72. First rotating shaft; 721. First gear; 722. Worm; 73. Second rotating shaft; 731. Worm wheel; 732. Second gear; 74. Second rack. DETAILED DESCRIPTION

[0050] The following is combined with Figure 1 -Attached Fig. 9 , further details of this application are given.

[0051] Example 1

[0052] The embodiment of the present application discloses a USB-compatible single-chip microcomputer wake-up device.

[0053] Reference Figure 1 A USB-compatible single-chip wake-up device includes an AND gate U1, a first inverter, a second inverter, a switch SW1, a USB connection terminal F, an eighth resistor R8, a ninth resistor R9, a seventh resistor R7 and a first capacitor C1. The first input terminal A and the second input terminal B of the AND gate U1 are electrically connected to the first high-level power supply terminal V1 respectively, the first inverter is electrically connected to the first input terminal A of the AND gate U1, the first inverter is used to flip the high level output by the first high-level power supply terminal V1 into a low level, the switch SW1 is connected to the first inverter, and the switch SW1 is used to electrically connect the first inverter to the second high-level power supply terminal V2.

[0054] In an optional embodiment, the specific structure of the first inverter is as follows: the first inverter includes a first resistor R1, a third resistor R3, a fourth resistor R4 and a first transistor Q1, one end of the fourth resistor R4 is connected to the first high-level power supply terminal V1, the other end of the fourth resistor R4 is connected to the first input terminal A of the AND gate U1, the collector of the first transistor Q1 is connected to the first input terminal A of the AND gate U1, the emitter of the first transistor Q1 is grounded, one end of the switch SW1 is connected to the second high-level power supply terminal V2, the two ends of the first resistor R1 are respectively connected to the base of the first transistor Q1 and the other end of the switch SW1, the two ends of the third resistor R3 are respectively connected to the base and the emitter of the first transistor Q1, one end of the eighth resistor R8 is connected to the first input terminal A of the AND gate U1, and the other end of the eighth resistor R8 is grounded.

[0055] The second inverter is electrically connected to the second input terminal B of the AND gate U1, and the second inverter is used to flip the high level output by the first high level power supply terminal V1 into a low level. The USB connection terminal F is connected to the second inverter, and the USB connection terminal F is used to electrically connect the second inverter to the USB power supply terminal VBUS. The output terminal X of the AND gate U1 is connected to the IO port of the single-chip microcomputer.

[0056] In an optional embodiment, the specific structure of the second inverter is as follows: the second inverter includes a second resistor R2, a fifth resistor R5, a sixth resistor R6 and a second triode Q2, one end of the fifth resistor R5 is connected to the first high-level power supply terminal V1, the other end of the fifth resistor R5 is connected to the second input terminal B of the AND gate U1, the collector of the second triode Q2 is connected to the second input terminal B of the AND gate U1, the emitter of the second triode Q2 is grounded, the two ends of the second resistor R2 are respectively connected to the base of the second triode Q2 and the USB connection terminal F, the two ends of the sixth resistor R6 are respectively connected to the base and emitter of the second triode Q2, one end of the ninth resistor R9 is connected to the second input terminal B of the AND gate U1, and the other end of the ninth resistor R9 is grounded.

[0057] The third input terminal D of the AND gate U1 is connected to the third high-level power supply terminal V3, one end of the first capacitor C1 is grounded, the other end of the first capacitor C1 is connected to the third input terminal D of the AND gate U1, and both ends of the seventh resistor R7 are respectively connected to the third input terminal D and the output terminal X of the AND gate U1.

[0058] The implementation principle of the USB-compatible single-chip microcomputer wake-up device of this embodiment is as follows: when the switch SW1 is not closed, the first transistor Q1 is not turned on, and at this time, the first input terminal A of the AND gate U1 inputs a high level, and when the USB connection terminal F is not electrically connected to the USB power supply terminal VBUS, the second transistor Q2 is not turned on, and at this time, the second input terminal B of the AND gate U1 inputs a high level, so the output terminal X of the AND gate U1 outputs a high level, and the single-chip microcomputer is in a sleep state;

[0059] When the switch SW1 is closed, the base of the first transistor Q1 is electrically connected to the second high-level power supply terminal V2, and the first transistor Q1 is turned on, thereby flipping the high level output by the first high-level power supply terminal V1 into a low level, and the first input terminal A of the AND gate U1 inputs a low level. At this time, no matter whether the second input terminal B of the AND gate U1 inputs a high level or a low level, the output terminal X of the AND gate U1 outputs a low level, and the single-chip microcomputer is awakened from the sleep state;

[0060] When the USB connection terminal F is electrically connected to the USB power supply terminal VBUS, the base of the second transistor Q2 is electrically connected to the USB power supply terminal VBUS, and the second transistor Q2 is turned on, thereby flipping the high level output by the first high-level power supply terminal V1 into a low level, and inputting a low level into the second input terminal B of the AND gate U1. At this time, no matter whether the first input terminal A of the AND gate U1 inputs a high level or a low level, the output terminal X of the AND gate U1 outputs a low level, and the single-chip microcomputer is awakened from the sleep state; and then the two wake-up modes of GPIO wake-up and USB wake-up can be realized through one IO port, so that the hardware cost is controlled under the premise of meeting the diversity and convenience of the wake-up methods.

[0061] Example 2

[0062] The embodiment of the present application discloses a USB-compatible single-chip microcomputer wake-up device.

[0063] Reference Figure 2 , Figure 3 and Figure 4 , a USB-compatible single-chip microcomputer wake-up device, the difference between this embodiment and embodiment 1 is that the switch SW1 includes a base 10, a first splitting and combining component 20 and a terminal 30, the first splitting and combining component 20 includes a first switch seat 21, a first moving contact 22, a first static contact 23, a first button 24 and a first spring 25, the first switch seat 21 is detachably connected to the base 10, more specifically, the first switch seat 21 is threadably connected to the base 10, further, the base 10 is provided with a threaded hole 11, the first switch seat 21 is provided with an external thread, and the first switch seat 21 is screwed to the threaded hole 11 of the base 10 through the external thread.

[0064] The first moving contact 22 and the first static contact 23 are arranged on the first switch seat 21, and the first moving contact 22 can contact the first static contact 23. More specifically, the first button 24 is slidably arranged on the first switch seat 21, the first moving contact 22 is fixedly connected to the first button 24, the first static contact 23 is fixedly arranged on the first switch seat 21, the first button 24 is provided with a first limiting plate 241, the first switch seat 21 is provided with a first limiting groove 211, the first spring 25 is sleeved on the outside of the first button 24, and the two ends of the first spring 25 are respectively abutted against the end faces of the first limiting plate 241 and the first limiting groove 211.

[0065] The connection terminal 30 is provided on the base 10, and the first static contact 23 is detachably electrically connected to the connection terminal 30, and the connection terminal 30 is electrically connected to the first resistor R1 and the second high-level power supply terminal V2, respectively. When the first button 24 is pressed, the first moving contact 22 can be pushed to contact the first static contact 23, so that the switch SW1 is closed, and the first resistor R1 is electrically connected to the second high-level power supply terminal V2, so that the high level output by the first high-level power supply terminal V1 can be flipped to a low level.

[0066] Reference Figure 3 , Figure 4 and Figure 5 In an optional embodiment, the first stationary contact 23 can be detachably electrically connected to the terminal 30 through the connecting component 40. The specific structure of the connecting component 40 and the specific connection relationship between the first stationary contact 23 and the terminal 30 are as follows:

[0067] Reference Figure 3 , Figure 4 and Figure 6 The connecting assembly 40 includes a slide seat 41, a rotating seat 42, a conductive ring 43, a first conductive column 44 and a second elastic member, and the slide seat 41 is slidably disposed on the base 10;

[0068] The rotating seat 42 is rotatably connected to the sliding seat 41, a cylinder 421 is provided on the rotating seat 42, a conductive ring 43 is fixed on the cylinder 421 of the rotating seat 42, and the conductive ring 43 is detachably electrically connected to the first static contact 23. More specifically, a conductive rod 422 is provided on the rotating seat 42, a groove 231 is provided on the first static contact 23, the conductive rod 422 is electrically connected to the conductive ring 43 through a first connecting plate 423, and the conductive rod 422 can be electrically plugged into the first static contact 23 through the groove 231;

[0069] The first conductive column 44 is fixedly connected to the slide seat 41, and the first conductive column 44 is slidably electrically connected to the connection terminal 30. More specifically, the connection terminal 30 is provided with a first conductive frame 31, and the first conductive column 44 is slidably penetrated in the first conductive frame 31. The first conductive frame 31 is provided with a pair of first conductive clamping plates 311, and the pair of first conductive clamping plates 311 are in sliding contact with the two side walls of the first conductive column 44.

[0070] The first conductive column 44 is rotatably electrically connected to the conductive ring 43. More specifically, a pair of conductive springs 441 are provided on the first conductive column 44. The conductive springs 441 are in sliding contact with the outer peripheral wall of the conductive ring 43.

[0071] The second elastic member is disposed on the base 10 and acts on the slide 41. More specifically, the second elastic member can be a second spring 45. The second spring 45 is sleeved on the outside of the first conductive column 44. The two ends of the second spring 45 are respectively abutted against the first conductive frame 31 and the base 10. The second spring 45 is used to provide an elastic force to push the slide 41 to move toward the threaded hole 11.

[0072] The first switch seat 21 and the base 10 are arranged to be detachably connected, and the first static contact 23 and the terminal 30 are detachably electrically connected. Therefore, when the first splitting and combining assembly 20 has a fault such as wear of the first moving contact 22 and the first static contact 23 and needs to be replaced, the first switch seat 21 can be removed and separated from the base 10 and the first splitting and combining assembly 20 can be replaced.

[0073] After the first switch seat 21 is disassembled and separated from the base 10, when a new first switch seat 21 needs to be installed, the new first switch seat 21 is inserted into the threaded hole 11, and the conductive rod 422 is inserted into the groove 231, and then the first switch seat 21 is rotated to be screwed with the threaded hole 11 of the base 10 through the external thread. During the screwing process, the rotating seat 42 rotates synchronously with the first switch seat 21. When the end of the conductive rod 422 abuts against the end wall of the groove 231, it starts to push the sliding seat 41 to overcome the elastic force of the second spring 45 and slide relative to the base 10 until the first switch seat 21 is screwed tightly with the base 10.

[0074] Reference Figure 7 , Figure 8 and Fig. 9 When the first splitting and combining assembly 20 is disassembled and separated from the base 10 and a new first splitting and combining assembly 20 has not yet been installed, the second splitting and combining assembly 60 can temporarily replace the first splitting and combining assembly 20 to avoid the situation where the switch SW1 cannot be closed during the replacement of the first splitting and combining assembly 20. The structure of the second splitting and combining assembly 60 is as follows:

[0075] The second splitting and combining assembly 60 includes a second switch seat 61, a second moving contact 62, a second static contact 63, a second button 64 and a third spring 65. The second switch seat 61 is slidably arranged on the base 10. The second moving contact 62 and the second static contact 63 are arranged on the second switch seat 61. The second moving contact 62 can contact the second static contact 63. More specifically, the second button 64 is slidably arranged on the second switch seat 61. The second moving contact 62 is fixedly connected to the second button 64. The second static contact 63 is fixedly arranged on the second switch seat 61. A second limiting plate 641 is arranged on the second button 64. A second limiting groove 611 is arranged on the second switch seat 61. The third spring 65 is sleeved on the outer side of the second button 64. The two ends of the third spring 65 are respectively abutted against the end faces of the second limiting plate 641 and the second limiting groove 611.

[0076] The second stationary contact 63 is electrically connected to the connection terminal 30 by sliding. More specifically, the connection terminal 30 is provided with a second conductive frame 32, which is fixed on the base 10 and electrically connected to the first conductive frame 31 through the second connecting plate 33. A pair of second conductive clamping plates 321 are provided on the second conductive frame 32. The second stationary contact 63 is provided with a second conductive column 631, which is slidably penetrated in the second conductive frame 32, and the pair of second conductive clamping plates 321 are respectively in sliding contact with the two side walls of the second conductive column 631.

[0077] Reference Figure 4 , Figure 8 and Fig. 9The slide 41 is connected to the second switch seat 61 through a linkage member 70. When the slide 41 slides relative to the base 10, the second switch seat 61 can be driven to slide relative to the base 10 through the linkage member 70. More specifically, the linkage member 70 includes a first rack 71, a first rotating shaft 72, a second rotating shaft 73 and a second rack 74. The first rack 71 is fixed to the slide 41, and the first rotating shaft 72 and the second rotating shaft 73 are rotatably arranged on the base 10. The first rotating shaft 72 is provided with a first gear 721 and a worm 722, and the first gear 721 is meshed with the first rack 71. The second rotating shaft 73 is provided with a worm wheel 731 and a second gear 732, and the worm wheel 731 is meshed with the worm 722. The second rack 74 is fixed to the second switch seat 61 and meshed with the second gear 732.

[0078] In the process of disassembling and separating the first separation component 20 from the base 10, when the first switch seat 21 is separated from the base 10, the slide seat 41 slides relative to the base 10 under the elastic force of the second spring 45, and then drives the first gear 721, the first rotating shaft 72 and the worm 722 to rotate through the first rack 71, and then drives the worm wheel 731, the second rotating shaft 73 and the second gear 732 to rotate through the worm 722, and then, under the interaction of the second gear 732 and the second rack 74, the second switch seat 61 can be driven to slide relative to the base 10, so that the second button 64 extends out of the base 10, and then, by pressing the second button 64, the second moving contact 62 can be made to contact the second static contact 63, thereby realizing the closing operation of the switch SW1.

[0079] The implementation principle of the USB-compatible single-chip wake-up device of this embodiment is as follows: when the first button 24 is pressed, the first moving contact 22 can be pushed to contact the first static contact 23, so that the switch SW1 is closed, and the first resistor R1 and the second high-level power supply terminal V2 are electrically connected, so that the high level output by the first high-level power supply terminal V1 can be flipped to a low level;

[0080] When the first splitter assembly 20 has a fault such as the first moving contact 22 and the first stationary contact 23 being worn and needs to be replaced, the first switch seat 21 can be removed and separated from the base 10 by screwing the first switch seat 21, and the first splitter assembly 20 can be replaced;

[0081] During the process of disassembling and separating the first separation assembly 20 from the base 10, when the first switch seat 21 is separated from the base 10, the slide seat 41 slides relative to the base 10 under the elastic force of the second spring 45, and then the second switch seat 61 can be driven to slide relative to the base 10 through the linkage 70, so that the second button 64 extends out of the base 10, and then by pressing the second button 64, the second moving contact 62 can be brought into contact with the second static contact 63, thereby realizing the closing operation of the switch SW1.

[0082] The embodiments of this specific implementation are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. The same components are represented by the same figure marks. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A USB-compatible single-chip microcomputer wake-up device, characterized in that: include: An AND gate (U1), wherein a first input terminal (A) and a second input terminal (B) of the AND gate (U1) are respectively electrically connected to a first high-level power supply terminal (V1), and an output terminal (X) of the AND gate (U1) is connected to an IO port of a single-chip microcomputer; A first inverter, the first inverter being electrically connected to the first input terminal (A) of the AND gate (U1), the first inverter being used for flipping a high level output by the first high level power supply terminal (V1) into a low level; a second inverter, the second inverter being electrically connected to the second input terminal (B) of the AND gate (U1), the second inverter being used for flipping the high level output by the first high level power supply terminal (V1) into a low level; A switch (SW1), the switch (SW1) being connected to the first inverter, and the switch (SW1) being used to electrically connect the first inverter to a second high-level power supply terminal (V2); A USB connection terminal (F), the USB connection terminal (F) is connected to the second inverter, and the USB connection terminal (F) is used to electrically connect the second inverter to a USB power supply terminal (VBUS); It also includes an eighth resistor (R8), the first inverter includes a first resistor (R1), a third resistor (R3), a fourth resistor (R4) and a first triode (Q1), one end of the fourth resistor (R4) is connected to the first high-level power supply end (V1), the other end of the fourth resistor (R4) is connected to the first input end (A) of the AND gate (U1), the collector of the first triode (Q1) is connected to the first input end (A) of the AND gate (U1), the emitter of the first triode (Q1) is grounded, one end of the switch (SW1) is connected to the second high-level power supply end (V2), the two ends of the first resistor (R1) are respectively connected to the base of the first triode (Q1) and the other end of the switch (SW1), the two ends of the third resistor (R3) are respectively connected to the base and the emitter of the first triode (Q1), one end of the eighth resistor (R8) is connected to the first input end (A) of the AND gate (U1), and the other end of the eighth resistor (R8) is grounded; The invention also comprises a ninth resistor (R9), wherein the second inverter comprises a second resistor (R2), a fifth resistor (R5), a sixth resistor (R6) and a second triode (Q2), wherein one end of the fifth resistor (R5) is connected to the first high-level power supply end (V1), the other end of the fifth resistor (R5) is connected to the second input end (B) of the AND gate (U1), the collector of the second triode (Q2) is connected to the second input end (B) of the AND gate (U1), the emitter of the second triode (Q2) is grounded, the two ends of the second resistor (R2) are respectively connected to the base of the second triode (Q2) and the USB connection end (F), the two ends of the sixth resistor (R6) are respectively connected to the base and the emitter of the second triode (Q2), one end of the ninth resistor (R9) is connected to the second input end (B) of the AND gate (U1), and the other end of the ninth resistor (R9) is grounded.

2. The USB-compatible single-chip microcomputer wake-up device according to claim 1, characterized in that: The switch (SW1) comprises a base (10), a first splitting and combining component (20) and a wiring terminal (30); the first splitting and combining component (20) comprises a first switch base (21), a first moving contact (22) and a first stationary contact (23); the first switch base (21) is detachably connected to the base (10); the first moving contact (22) and the first stationary contact (23) are arranged on the first switch base (21); the first moving contact (22) can contact the first stationary contact (23); the wiring terminal (30) is arranged on the base (10); the first stationary contact (23) is detachably electrically connected to the wiring terminal (30); and the wiring terminal (30) is electrically connected to the first resistor (R1) and the second high-level power supply terminal (V2), respectively.

3. The USB-compatible single-chip microcomputer wake-up device according to claim 2, characterized in that: The first opening and closing assembly (20) further comprises a first button (24) and a first spring (25); the first button (24) is slidably disposed on the first switch seat (21); the first moving contact (22) is fixedly connected to the first button (24); the first stationary contact (23) is fixedly disposed on the first switch seat (21); a first limiting plate (241) is disposed on the first button (24); a first limiting groove (211) is disposed on the first switch seat (21); the first spring (25) is sleeved on the outside of the first button (24); and two ends of the first spring (25) are respectively in contact with end surfaces of the first limiting plate (241) and the first limiting groove (211).

4. The USB-compatible single-chip microcomputer wake-up device according to claim 2, characterized in that: The switch (SW1) further comprises a connecting assembly (40), wherein the first switch seat (21) is threadedly connected to the base (10), and the connecting assembly (40) comprises a sliding seat (41), a rotating seat (42), a conductive ring (43), a first conductive column (44) and a second elastic member, wherein the sliding seat (41) is slidably arranged on the base (10), the second elastic member is arranged on the base (10) and acts on the sliding seat (41), the rotating seat (42) is rotatably connected to the sliding seat (41), the conductive ring (43) is fixedly arranged on the rotating seat (42), the conductive ring (43) is detachably electrically connected to the first stationary contact (23), the first conductive column (44) is fixedly connected to the sliding seat (41), the first conductive column (44) is slidably electrically connected to the wiring terminal (30), and is rotatably electrically connected to the conductive ring (43).

5. The USB-compatible single-chip microcomputer wake-up device according to claim 4, characterized in that: The connecting terminal (30) is provided with a pair of first conductive clamping plates (311), the pair of first conductive clamping plates (311) are in sliding contact with the two side walls of the first conductive column (44), the first conductive column (44) is provided with a pair of conductive spring sheets (441), the conductive spring sheets (441) are in sliding contact with the outer peripheral wall of the conductive ring (43), the rotating seat (42) is provided with a conductive rod (422), the first stationary contact (23) is provided with a groove (231), the conductive rod (422) is electrically connected to the conductive ring (43), and the conductive rod (422) can be electrically plugged into the first stationary contact (23) through the groove (231).

6. The USB-compatible single-chip microcomputer wake-up device according to claim 4, characterized in that: The device further comprises a second splitting and combining assembly (60), the second splitting and combining assembly (60) comprising a second switch seat (61), a second moving contact (62) and a second stationary contact (63); the second switch seat (61) is slidably arranged on the base (10); the second moving contact (62) and the second stationary contact (63) are arranged on the second switch seat (61); the second moving contact (62) can contact the second stationary contact (63); the second stationary contact (63) is slidably electrically connected to the connection terminal (30); the slide seat (41) is connected to the second switch seat (61) via a linkage member (70); when the slide seat (41) slides relative to the base (10), the linkage member (70) can drive the second switch seat (61) to slide relative to the base (10).

7. The USB-compatible single-chip microcomputer wake-up device according to claim 6, characterized in that: The linkage member (70) comprises a first rack (71), a first rotating shaft (72), a second rotating shaft (73) and a second rack (74); the first rack (71) is fixedly connected to the slide seat (41); the first rotating shaft (72) and the second rotating shaft (73) are rotatably arranged on the base (10); a first gear (721) and a worm (722) are arranged on the first rotating shaft (72); the first gear (721) meshes with the first rack (71); a worm wheel (731) and a second gear (732) are arranged on the second rotating shaft (73); the worm wheel (731) and the worm (722) mesh; the second rack (74) is fixedly connected to the second switch seat (61) and meshes with the second gear (732).

8. The USB-compatible single-chip microcomputer wake-up device according to claim 6, characterized in that: The second opening and closing assembly (60) further comprises a second button (64) and a third spring (65); the second button (64) is slidably arranged on the second switch seat (61); the second moving contact (62) is fixedly connected to the second button (64); the second stationary contact (63) is fixedly arranged on the second switch seat (61); the second button (64) is provided with a second limiting plate (641); the second switch seat (61) is provided with a second limiting groove (611); two ends of the third spring (65) are respectively in contact with end surfaces of the second limiting plate (641) and the second limiting groove (611); a pair of second conductive clamping plates (321) are provided on the connection terminal (30); a second conductive column (631) is provided on the second stationary contact (63); the pair of second conductive clamping plates (321) are respectively in slidable contact with two side walls of the second conductive column (631).