A switch control circuit and switch control chip

CN122932658APending Publication Date: 2026-10-16ZHUHAI NINESTAR MANAGEMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510443789.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-09
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

[0005]有鉴于此,本申请提供了一种开关机控制电路以及开关控制芯片,以便于解决现有技术中即使在MCU处于休眠状态下,MCU的的电源端处的电源也会使得外围元器件(例如蓝牙模块等)处于待机或工作状态,进而造成不必要的静态电流消耗,显著增加了系统整体功耗,最终使得便携式打印机的续航能力较低,严重影响用户体验的问题

Benefits of technology

[0017] In this embodiment, the power-on/off control circuit includes a power matching module and an on/off control module. The power matching module regulates the power supply voltage to provide operating voltage for the MCU. The on/off control module can send a second control level to the power matching module, causing the power matching module to disconnect the electrical connection between the power supply and the MCU based on the second control level. By physically disconnecting the external power supply to the MCU, some peripheral components are directly and physically de-energized, reducing static current consumption, enhancing the portable printer's battery life, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122932658A_ABST
    Figure CN122932658A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a kind of switch control circuit and switch control chip.Therein, the switch control circuit includes power matching module and on-off control module.Power matching module is used to adjust power voltage, to provide operating voltage for MCU.On-off control module can send second control level to power matching module, so that power matching module disconnects the electrical connection between power supply and MCU according to second control level.By physically disconnecting the external power supply of MCU, some peripheral components are directly physically powered off, reducing static current consumption, enhancing the endurance of portable printer, improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image forming technology, and more specifically to a power on / off control circuit and a power on / off control chip. Background Technology

[0002] In the design of portable printers, the MCU, as the core control module, is typically responsible for coordinating functions such as printhead driving, sensor detection, and communication module interaction. In mobile application scenarios, since the battery power of portable printers is relatively fixed, the MCU needs to enter sleep mode to save power when the portable printer is not performing printing jobs, in order to extend its usage time.

[0003] Specifically, in related technologies, low-power management is typically achieved by relying on the MCU's built-in sleep program, such as by reducing the main frequency or entering standby mode. However, even when the MCU is in sleep mode, the power supply at the MCU's power terminal will keep peripheral components (such as Bluetooth modules) in standby or working state, resulting in unnecessary static current consumption, significantly increasing the overall power consumption of the system, and ultimately leading to low battery life for portable printers, seriously affecting the user experience.

[0004] It should be noted that the information disclosed in the background section of this application is intended only to enhance the understanding of the general background of this application, and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention

[0005] In view of this, this application provides a power-on / off control circuit and a power-off control chip to solve the problem in the prior art that even when the MCU is in sleep mode, the power supply at the MCU's power supply terminal will cause peripheral components (such as Bluetooth modules) to be in standby or working state, resulting in unnecessary static current consumption, significantly increasing the overall power consumption of the system, and ultimately causing the portable printer to have low battery life, which seriously affects the user experience.

[0006] In a first aspect, embodiments of this application provide a power-on / off control circuit, including: A power matching module, wherein the output terminal of the power matching module is electrically connected to the power supply terminal of the MCU, the input terminal of the power matching module is used to be electrically connected to the power supply, and the power matching module is used to adjust the power supply voltage to provide the operating voltage for the MCU; A switching control module, wherein the first output terminal of the switching control module is electrically connected to the control terminal of the power matching module, the second output terminal of the switching control module is electrically connected to the first terminal of the MCU, the first input terminal of the switching control module is electrically connected to the power supply, and the second input terminal of the switching control module is electrically connected to the second terminal of the MCU, the switching control module being used for: When the MCU is in a power-off state, in response to the first operation, the first control level is sent to the power matching module. The power matching module is also used to conduct the electrical connection between the power supply and the MCU according to the first control level. When the MCU is in an operating state, in response to the second operation, the second control level is sent to the power matching module. The power matching module is also used to disconnect the electrical connection between the power supply and the MCU according to the second control level.

[0007] In one possible implementation, the on / off control module specifically includes: An on / off control circuit is included, wherein its first output terminal is electrically connected to the control terminal of the power matching module, its second output terminal is electrically connected to the first terminal of the MCU, its first input terminal is electrically connected to the power supply, and its second input terminal is electrically connected to the second terminal of the MCU. Specifically, the on / off control circuit is used for: When the MCU is in a power-off state, in response to the first operation, the first output terminal of the on / off control circuit outputs a first indication signal to the MCU. The first indication signal is used to instruct the MCU to send a power-on indication signal to the second input terminal of the on / off control circuit. The on / off control circuit sends the first control level to the power matching module according to the power-on indication signal. When the MCU is powered on, in response to the second operation, the first output terminal of the on / off control circuit outputs a second indication signal to the MCU. The second indication signal is used to instruct the MCU to send a power-off indication signal to the second input terminal of the on / off control circuit. The on / off control circuit sends the second control level to the power matching module according to the power-off indication signal.

[0008] In one possible implementation, the on / off control module further includes: A reset control circuit is provided, the output of which is electrically connected to the control terminal of the power matching module. The reset control circuit is used to send a reset control level to the power matching module in response to a reset operation.

[0009] In one possible implementation, the on / off control circuit specifically includes: A first control unit, the input terminal of which is electrically connected to the power supply; a first output terminal of which is electrically connected to a first terminal of the MCU; a second output terminal of which is electrically connected to the control terminal of the power matching module; the first control unit is used to respond to a first operation / second operation, and the first output terminal of the first control unit outputs a first indication signal / second indication signal to the MCU; The second control unit has its input terminal electrically connected to the second terminal of the MCU; its output terminal is electrically connected to the control terminal of the power matching module; the second control unit is used to output a first level signal / second level signal according to the first indication signal / second indication signal. Wherein, the first output terminal of the first control unit is the first output terminal of the conduction control unit; the input terminal of the first control unit is the first input terminal of the conduction control unit; the input terminal of the second control unit is the second input terminal of the conduction control unit; and the output terminal of the second control unit is the second output terminal of the conduction control unit.

[0010] In one possible implementation, the conduction control circuit further includes: The third control unit has an input terminal for electrical connection to the power supply and an output terminal for electrical connection to the control terminal of the power matching module. When the power supply is connected, the third control unit adjusts the level of the control terminal of the power matching module to a first control level, so that the power matching module controls the conduction of the electrical connection between the power supply and the MCU.

[0011] In one possible implementation, the reset control circuit specifically includes: A first normally open push-button switch, the first end of which is electrically connected to the control terminal of the power matching module, and the second end of which is grounded. The first terminal of the normally open push button is the output terminal of the reset control circuit.

[0012] In one possible implementation, the first control unit specifically includes: A second normally open push-button switch, the first end of which is electrically connected to the power supply; The first diode has its input terminal electrically connected to the second terminal of the second normally open push button switch, and its output terminal electrically connected to the control terminal of the power matching module. The first transistor has its base electrically connected to the second terminal of the second normally open push-button switch, its emitter grounded, and its collector electrically connected to the first port of the MCU. A first resistor, the first end of which is electrically connected to the emitter of the first transistor, and the second end of which is electrically connected to the base of the first transistor; Wherein, the output terminal of the first diode is the second output terminal of the first control unit, the first terminal of the second normally open push button switch is the input terminal of the first control unit, and the collector of the first transistor is the first output terminal of the first control unit.

[0013] In one possible implementation, the second control unit specifically includes: The second transistor has its emitter grounded and its base electrically connected to the second port of the MCU. The second resistor has its first end electrically connected to the emitter of the second transistor and its second end electrically connected to the base of the second transistor. The third resistor, the first end of which is electrically connected to the collector of the second transistor; The base of the third transistor is electrically connected to the second terminal of the third resistor, and the emitter of the third transistor is electrically connected to the power supply. The fourth resistor has its first end electrically connected to the emitter of the third transistor and its second end electrically connected to the base of the third transistor. The second diode has its input terminal electrically connected to the collector of the third transistor, and its output terminal electrically connected to the control terminal of the power matching module. The base of the second transistor is the input terminal of the second control unit, and the output terminal of the second diode is the output terminal of the second control unit.

[0014] In one possible implementation, the third control unit specifically includes: The third diode has its input terminal used for power supply connection and its output terminal electrically connected to the control terminal of the power matching module. The input terminal of the third diode is the input terminal of the three control units; the output terminal of the third diode is the output terminal of the third control unit.

[0015] In one possible implementation, the power matching module specifically includes: A first capacitor, the first terminal of which is electrically connected to the power supply terminal of the MCU, and the second terminal of which is grounded; The second capacitor has its first terminal electrically connected to the first terminal of the first capacitor. The fifth resistor has its first end electrically connected to the first end of the second capacitor, and its second end electrically connected to the second end of the second capacitor. The sixth resistor has its first end electrically connected to the second end of the fifth resistor, and its second end is grounded. An inductor, wherein the second end of the inductor is electrically connected to the first end of the fifth resistor; A buck converter, wherein the ground terminal of the buck converter is grounded, the output terminal of the buck converter is electrically connected to the first terminal of the inductor, the feedback terminal of the buck converter is electrically connected to the node between the sixth resistor and the fifth resistor, the input terminal of the buck converter is electrically connected to the power supply, and the enable terminal of the buck converter is electrically connected to the output terminal of the on / off control module. The third capacitor has its first terminal electrically connected to the input terminal of the buck converter, and its second terminal grounded. Wherein, the first terminal of the first capacitor is the output terminal of the power matching module, and the enable terminal of the buck converter is the control terminal of the power matching module.

[0016] Secondly, embodiments of this application provide a switch control chip, including: The power-on / off control circuit described in any one of the first aspects.

[0017] In this embodiment, the power-on / off control circuit includes a power matching module and an on / off control module. The power matching module regulates the power supply voltage to provide operating voltage for the MCU. The on / off control module can send a second control level to the power matching module, causing the power matching module to disconnect the electrical connection between the power supply and the MCU based on the second control level. By physically disconnecting the external power supply to the MCU, some peripheral components are directly and physically de-energized, reducing static current consumption, enhancing the portable printer's battery life, and improving the user experience. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of a power supply structure for a portable printer provided in an embodiment of this application.

[0020] Figure 2 This is a schematic diagram of a power-on / off control circuit provided in an embodiment of this application.

[0021] Figure 3 This is a schematic diagram of the circuit structure of the power matching module provided in an embodiment of this application.

[0022] Figure 4 This is a schematic diagram of the circuit structure of a first control unit provided in an embodiment of this application.

[0023] Figure 5 This is a schematic diagram of the circuit structure of a first control unit provided in an embodiment of this application.

[0024] Figure 6 This is a schematic diagram of a switch control circuit provided in an embodiment of this application.

[0025] Figure 7 This is a schematic diagram of the structure of a switch control chip provided in an embodiment of this application. Detailed Implementation

[0026] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0027] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0028] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0029] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0030] To facilitate understanding, the concept of "portable printer" involved in the embodiments of this application will be briefly explained below.

[0031] The portable printer described in this application refers to a printing device that does not require an external power source. Typically, portable printers can meet the needs of mobile offices and outdoor work. Of course, the switch control circuit described in this application can also be used as the control circuit for other devices that do not require an external power source; this application does not impose specific limitations on this. For clarity, a portable printer will be used as the example below.

[0032] See Figure 1 This figure is a schematic diagram of the power supply structure of a portable printer provided in an embodiment of this application. As shown, the figure illustrates a battery power supply 101, a voltage drop converter 102, a Bluetooth module 103, an MCU 104, and a motor driver chip 105. The battery 101 serves as the power supply for the portable printer. Typically, the voltage drop converter adjusts the voltage of the battery power supply and provides power to the Bluetooth module, MCU, and motor driver chip.

[0033] In practical applications, since the battery power of portable printers is relatively fixed, in order to extend their usage time, the MCU needs to enter sleep mode to save power when the portable printer is not performing related printing jobs.

[0034] Specifically, in related technologies, low power management is usually achieved by relying on the MCU's built-in sleep program, such as by reducing the main frequency or entering standby mode.

[0035] However, even when the MCU is in sleep mode, the power supply at the MCU's power terminal will keep peripheral components (such as Bluetooth modules and motor driver chips) in standby or working state, resulting in unnecessary static current consumption, significantly increasing the overall power consumption of the system, and ultimately making the portable printer's battery life low, seriously affecting the user experience.

[0036] To address the aforementioned issues, this application provides a power-on / off control circuit. This circuit specifically includes a power matching module and an on / off control module. The power matching module regulates the power supply voltage to provide operating voltage for the MCU. The on / off control module can send a second control level to the power matching module, causing the power matching module to disconnect the electrical connection between the power supply and the MCU based on the second control level. By physically disconnecting the external power supply to the MCU, some peripheral components are directly and physically de-energized, reducing static current consumption, enhancing the portable printer's battery life, and improving the user experience. Specifically, this will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0037] See Figure 2This figure shows a schematic diagram of a power-on / off control circuit provided in an embodiment of this application. As shown, the power-on control circuit specifically includes a power matching module and an on / off control module. The specific circuit connections are as follows: the output terminal of the power matching module is electrically connected to the power supply terminal of the MCU; the input terminal of the power matching module is electrically connected to the power supply; the first output terminal of the on / off control module is electrically connected to the control terminal of the power matching module; the second output terminal of the on / off control module is electrically connected to the first terminal of the MCU; the first input terminal of the on / off control module is electrically connected to the power supply; and the second input terminal of the on / off control module is electrically connected to the second terminal of the MCU.

[0038] The power matching module is used to regulate the power supply voltage to provide operating voltage for the MCU. Specifically, when the MCU is in a power-off state, in response to a first operation, it sends a first control level to the power matching module; the power matching module then connects the power supply and the MCU based on the first control level. When the MCU is in an operating state, in response to a second operation, it sends a second control level to the power matching module; the power matching module then disconnects the power supply and the MCU based on the second control level.

[0039] It is understandable that disconnecting the power supply from the MCU here does not mean that the MCU is going into sleep mode, but rather that the power matching module is not outputting power.

[0040] It should be noted that the first operation described above is typically a user-triggered operation to turn on the portable printer, such as clicking the power button, pressing and holding the power button, or rotating the power button. Similarly, the second operation described above is typically a user-triggered operation to turn off the portable printer, such as clicking the power button, pressing and holding the power button, or rotating the power button. This application does not impose specific limitations on this.

[0041] In this embodiment, in response to the second operation, the on / off control module can send a second control level to the power matching module, causing the power matching module to disconnect the electrical connection between the power supply and the MCU according to the second control level. By physically disconnecting the external power supply of the MCU, some peripheral components are directly and physically de-energized, reducing static current consumption, enhancing the battery life of the portable printer, and improving the user experience.

[0042] For ease of understanding, the power matching module and the on / off control module will be introduced separately below.

[0043] First, the power matching module.

[0044] For ease of understanding, this application provides a specific circuit structure for a power matching module. Specifically, see [link to specific documentation]. Figure 3The figure shows a circuit structure diagram of the power matching module provided in an embodiment of this application. As shown in the figure, the first capacitor C1, the second capacitor C2, the fifth resistor R5, the sixth resistor R6, the inductor L1, the buck converter U1, and the third capacitor C3 are shown.

[0045] The specific circuit connections are as follows: the first terminal of the first capacitor is electrically connected to the power supply terminal of the MCU; the second terminal of the first capacitor is grounded; the first terminal of the second capacitor is electrically connected to the first terminal of the first capacitor; the first terminal of the fifth resistor is electrically connected to the first terminal of the second capacitor; the second terminal of the fifth resistor is electrically connected to the second terminal of the second capacitor; the first terminal of the sixth resistor is electrically connected to the second terminal of the fifth resistor; the second terminal of the sixth resistor is grounded; the second terminal of the inductor is electrically connected to the first terminal of the fifth resistor; the ground terminal GND of the buck converter is grounded; the output terminal LX of the buck converter is electrically connected to the first terminal of the inductor; the feedback terminal FB of the buck converter is electrically connected to the node between the sixth resistor and the fifth resistor; the input terminal VIN of the buck converter is electrically connected to the power supply; the enable terminal EN of the buck converter is electrically connected to the output terminal of the on / off control module; the first terminal of the third capacitor is electrically connected to the input terminal VIN of the buck converter; the second terminal of the third capacitor is grounded.

[0046] Among them, the first terminal of the first capacitor is the output terminal LX of the power matching module; the enable terminal EN of the buck converter is the control terminal of the power matching module.

[0047] Of course, the above circuit structure is only an exemplary illustration. Those skilled in the art can apply other circuit structures with the same function according to actual needs, and this application does not impose any specific restrictions on this.

[0048] Second, the on / off control module.

[0049] In one possible implementation, the on / off control module described above specifically includes an on / off control circuit. Understandably, the specific circuit connections are as follows: the first output terminal of the on / off control circuit is electrically connected to the control terminal of the power matching module; the second output terminal of the on / off control circuit is electrically connected to the first terminal of the MCU; the first input terminal of the on / off control circuit is electrically connected to the power supply; and the second input terminal of the on / off control circuit is electrically connected to the second terminal of the MCU. Wherein, the first terminal of the on / off control circuit is the first output terminal of the on / off control module; the second output terminal of the on / off control circuit is the second output terminal of the on / off control module; the first input terminal of the on / off control circuit is the first input terminal of the on / off control module; and the second input terminal of the on / off control circuit is the second input terminal of the on / off control module.

[0050] Specifically, the on / off control circuit is used to: when the MCU is in a power-off state, in response to a first operation, output a first indication signal from its first output terminal to the MCU. This first indication signal instructs the MCU to send a power-on indication signal to the second input terminal of the on / off control circuit. Based on the power-on indication signal, the on / off control circuit sends a first control level to the power matching module.

[0051] When the MCU is powered on, in response to the second operation, the first output of the on / off control circuit outputs a second indication signal to the MCU. This second indication signal instructs the MCU to send a power-off indication signal to the second input of the on / off control circuit. Based on the power-off indication signal, the on / off control circuit sends a second control level to the power matching module.

[0052] In one possible implementation, the on / off control module further includes a reset control circuit. Specifically, the output of the reset control circuit is electrically connected to the control terminal of the power matching module; the reset control circuit is used to send a reset control level to the power matching module in response to a reset operation.

[0053] Understandably, when a portable printer malfunctions and cannot be controlled to turn on or off normally, the printer can be reset by the reset circuit in the on / off control module to restore normal operation.

[0054] In one possible implementation, the reset control circuit specifically includes a first normally open push-button switch. The first terminal of the first normally open push-button switch is electrically connected to the control terminal of the power matching module, and the second terminal of the first normally open push-button switch is grounded. The first terminal of the normally open push-button switch serves as the output terminal of the reset control circuit.

[0055] Understandably, when the first normally open push button is triggered, the control terminal of the power matching module will be grounded, thereby resetting the portable printer.

[0056] In one possible implementation, the on / off control circuit specifically includes a first control unit and a second control unit. The specific circuit connections are as follows: the input terminal of the first control unit is electrically connected to the power supply; the first output terminal of the first control unit is electrically connected to the first terminal of the MCU; the second output terminal of the first control unit is electrically connected to the control terminal of the power matching module; the input terminal of the second control unit is electrically connected to the second terminal of the MCU; and the output terminal of the second control unit is electrically connected to the control terminal of the power matching module. Wherein, the first output terminal of the first control unit is the first output terminal of the on / off control unit; the input terminal of the first control unit is the first input terminal of the on / off control unit; the input terminal of the second control unit is the second input terminal of the on / off control unit; and the output terminal of the second control unit is the second output terminal of the on / off control unit.

[0057] Specifically, in response to a first operation, the first control unit outputs a first indication signal to the MCU from its first output terminal; or in response to a second operation, the first control unit outputs a second indication signal to the MCU from its first output terminal. The second control unit is used to output a first level signal according to the first indication signal, or to output a second level signal according to the second indication signal.

[0058] In one possible implementation, this application embodiment also provides a circuit structure diagram of a first control unit. Specifically, see... Figure 4 This figure shows a circuit structure diagram of a first control unit provided in an embodiment of this application. As shown, the figure illustrates a second normally open push-button switch K2, a first diode D1, a first transistor Q3, and a first resistor R1. The specific circuit connections are as follows: the first terminal of the second normally open push-button switch is electrically connected to the power supply; the input terminal of the first diode is electrically connected to the second terminal of the second normally open push-button switch; the output terminal of the first diode is electrically connected to the control terminal of the power matching module; the base of the first transistor is electrically connected to the second terminal of the second normally open push-button switch; the emitter of the first transistor is grounded; the collector of the first transistor is electrically connected to the first port of the MCU; the first terminal of the first resistor is electrically connected to the emitter of the first transistor; and the second terminal of the first resistor is electrically connected to the base of the first transistor.

[0059] Wherein, the output terminal of the first diode is the second output terminal of the first control unit; the first terminal of the second normally open push-button switch is the input terminal of the first control unit; and the collector of the first transistor is the first output terminal of the first control unit.

[0060] Of course, the above circuit structure is only an exemplary illustration. Those skilled in the art can apply other circuit structures with the same function according to actual needs, and this application does not impose any specific restrictions on this.

[0061] In one possible implementation, this application embodiment also provides a circuit structure diagram of a second control unit. Specifically, see... Figure 5 The figure shows a circuit structure diagram of a first control unit provided in an embodiment of this application. As shown in the figure, the second transistor Q2, the second resistor R2, the third resistor R3, the third transistor Q3, the fourth resistor R4, and the second diode D2 are shown.

[0062] Specifically, the circuit connections are as follows: the emitter of the second transistor is grounded; the base of the second transistor is electrically connected to the second port of the MCU; the first end of the second resistor is electrically connected to the emitter of the second transistor; the second end of the second resistor is electrically connected to the base of the second transistor; the first end of the third resistor is electrically connected to the collector of the second transistor; the base of the third transistor is electrically connected to the second end of the third resistor; the emitter of the third transistor is electrically connected to the power supply; the first end of the fourth resistor is electrically connected to the emitter of the third transistor; the second end of the fourth resistor is electrically connected to the base of the third transistor; the input end of the second diode is electrically connected to the collector of the third transistor; and the output end of the second diode is electrically connected to the control terminal of the power matching module.

[0063] It should be noted that the base of the second transistor is the input terminal of the second control unit, and the output terminal of the second diode is the output terminal of the second control unit.

[0064] Of course, the above circuit structure is only an exemplary illustration. Those skilled in the art can apply other circuit structures with the same function according to actual needs, and this application does not impose any specific restrictions on this.

[0065] In one possible implementation, the conduction control circuit further includes a third control unit. Specifically, the input terminal of the third control unit is electrically connected to the power supply; the output terminal of the third control unit is electrically connected to the control terminal of the power matching module.

[0066] It is understandable that when an external power source is connected, the third control unit adjusts the level of the control terminal of the power matching module to the first control level, so that the power matching module controls the conduction of the electrical connection between the power source and the MCU.

[0067] In one possible implementation, the third control unit specifically includes a third diode. The input terminal of the third diode is electrically connected to the power supply; the output terminal of the third diode is electrically connected to the control terminal of the power matching module.

[0068] The input terminal of the third diode is the input terminal of the three control units; the output terminal of the third diode is the output terminal of the third control unit.

[0069] For ease of understanding, this application also provides a schematic diagram of the overall circuit structure of a switch control circuit. Specifically, see... Figure 6 The figure shows a schematic diagram of a switch control circuit provided in an embodiment of this application. As shown in the figure, the circuit includes resistors R1-R11, capacitors C1-C3, diodes D1-D3, transistors Q1-Q2, normally open push-button switches K1-K2, inductor L1, and buck converter U1.

[0070] As shown in the figure, the circuit connections are as follows: the first terminal of the first capacitor is electrically connected to the power supply terminal of the MCU; the second terminal of the first capacitor is grounded; the first terminal of the second capacitor is electrically connected to the first terminal of the first capacitor; the first terminal of the fifth resistor is electrically connected to the first terminal of the second capacitor; the second terminal of the fifth resistor is electrically connected to the second terminal of the second capacitor; the first terminal of the sixth resistor is electrically connected to the second terminal of the fifth resistor; the second terminal of the sixth resistor is grounded; the second terminal of the inductor is electrically connected to the first terminal of the fifth resistor; the ground terminal GND of the buck converter is grounded; the output terminal LX of the buck converter is electrically connected to the first terminal of the inductor; the feedback terminal FB of the buck converter is electrically connected to the node between the sixth resistor and the fifth resistor; the input terminal of the buck converter... VIN is electrically connected to the power supply; the enable terminal EN of the buck converter is electrically connected to the output terminal of the on / off control module; the first terminal of the third capacitor is electrically connected to the input terminal VIN of the buck converter; the second terminal of the third capacitor is grounded; the enable terminal EN of the buck converter is electrically connected to the first terminal of the first normally open push-button switch; the second terminal of the first normally open push-button switch is grounded; the first terminal of the eleventh resistor is electrically connected to the first terminal of the first normally open push-button switch; the second terminal of the eleventh resistor is grounded; the first terminal of the tenth resistor is electrically connected to the enable terminal EN of the buck converter; the second terminal of the tenth resistor is electrically connected to the output terminal of the second diode; the input terminal of the second diode is electrically connected to the collector of the third diode; the emitter of the second transistor is grounded; the... The base of the diode is electrically connected to the first terminal of the ninth resistor; the second terminal of the ninth resistor is electrically connected to the second port of the MCU; the first terminal of the second resistor is electrically connected to the emitter of the second diode; the second terminal of the second resistor is electrically connected to the base of the second diode; the first terminal of the third resistor is electrically connected to the collector of the second diode; the base of the third diode is electrically connected to the second terminal of the third resistor; the emitter of the third diode is electrically connected to the power supply; the first terminal of the fourth resistor is electrically connected to the emitter of the third diode; the second terminal of the fourth resistor is electrically connected to the base of the third diode; the output terminal of the third diode is electrically connected to the second terminal of the tenth resistor; the input terminal of the third diode is used for external power supply; the second normally open push-button switch... The first terminal is electrically connected to the power supply; the input terminal of the first diode is electrically connected to the second terminal of the second normally open push-button switch; the output terminal of the first diode is electrically connected to the second terminal of the tenth resistor; the first terminal of the seventh resistor is electrically connected to the base of the first transistor; the second terminal of the seventh resistor is electrically connected to the second terminal of the second normally open push-button switch; the emitter of the first transistor is grounded; the collector of the first transistor is electrically connected to the first terminal of the eighth resistor; the second terminal of the eighth resistor is electrically connected to a 3.3V voltage; the node between the collector of the first transistor and the first terminal of the eighth resistor is electrically connected to the first port of the MCU; the first terminal of the first resistor is electrically connected to the emitter of the first transistor; the second terminal of the first resistor is electrically connected to the base of the first transistor.

[0071] Understandably, when the external power supply is not connected and the MCU is in a shutdown state, the user presses and holds the second normally open button switch. When the second normally open button switch is pressed, the VBAT power supply, through the voltage divider circuit composed of the first diode and the tenth and eleventh resistors, causes the enable terminal of the dropout converter to receive a high level, thereby enabling the power matching module to start working and waking up the MCU. At the same time, when the second normally open button switch is pressed, the first transistor conducts, causing the first terminal of the MCU to receive a low level; after the first terminal of the MCU receives a low level for a preset time, the second terminal of the MCU outputs a high level, thereby causing the second transistor to conduct, supplying a high level to the enable terminal of the dropout converter. At this time, even if the second normally open button is released, the MCU is still in normal working state.

[0072] When the external power supply is not connected and the MCU is powered on, the user presses and holds the second normally open button switch. When the second normally open button switch is pressed, the first transistor conducts, causing the first terminal of the MCU to receive a low level. After the first terminal of the MCU receives a low level for a preset time, the second terminal of the MCU stops outputting a high level. At this time, releasing the second normally open button will stop the power matching module from supplying power.

[0073] When the external power supply is turned on, the external power supply, through the voltage divider circuit composed of the third diode and the tenth and eleventh resistors, enables the enable terminal of the voltage drop converter to receive a high level, thereby enabling the power matching module to start working and waking up the MCU.

[0074] When the user presses the first normally open push-button switch, the enable terminal of the dropout converter is grounded, and the power matching module stops supplying power. When the user releases the first normally open push-button switch, the MCU enters sleep mode and needs to be restarted. Alternatively, in one possible implementation, pressing the first normally open push-button switch may stop the output of 3.3V. This application does not limit the specific implementation of the reset circuit.

[0075] It is understood that in this embodiment of the application, the power on / off effect of the portable printer is achieved by directly controlling the 3.3V output voltage. This process does not rely on the sleep function inside the MCU and can greatly reduce the power consumption during sleep.

[0076] Corresponding to the above embodiments, this application also provides a switch control chip. Specifically, see [link to relevant documentation]. Figure 7 This figure shows a schematic diagram of a switch control chip provided in an embodiment of this application. The switch control chip 701 is shown in the figure. The switch control chip 701 includes a power-on / off control circuit 702. Specifically, this power-on / off control chip can be used to implement the specific functions of the embodiments described above; for the sake of brevity, further details are omitted here.

[0077] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects have an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0078] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0079] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0080] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0081] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the device embodiments and terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

Claims

1. A power on / off control circuit, characterized in that, include: A power matching module, wherein the output terminal of the power matching module is electrically connected to the power supply terminal of the MCU, the input terminal of the power matching module is used to be electrically connected to the power supply, and the power matching module is used to adjust the power supply voltage to provide the operating voltage for the MCU; A switching control module, wherein the first output terminal of the switching control module is electrically connected to the control terminal of the power matching module, the second output terminal of the switching control module is electrically connected to the first terminal of the MCU, the first input terminal of the switching control module is electrically connected to the power supply, and the second input terminal of the switching control module is electrically connected to the second terminal of the MCU, the switching control module being used for: When the MCU is in a power-off state, in response to the first operation, the first control level is sent to the power matching module. The power matching module is also used to connect the power supply and the MCU according to the first control level. When the MCU is in an operating state, in response to the second operation, the second control level is sent to the power matching module. The power matching module is also used to disconnect the electrical connection between the power supply and the MCU according to the second control level.

2. The circuit according to claim 1, characterized in that, The on / off control module specifically includes: An on / off control circuit is included, wherein its first output terminal is electrically connected to the control terminal of the power matching module, its second output terminal is electrically connected to the first terminal of the MCU, its first input terminal is electrically connected to the power supply, and its second input terminal is electrically connected to the second terminal of the MCU. Specifically, the on / off control circuit is used for: When the MCU is in a power-off state, in response to the first operation, the first output terminal of the on / off control circuit outputs a first indication signal to the MCU. The first indication signal is used to instruct the MCU to send a power-on indication signal to the second input terminal of the on / off control circuit. The on / off control circuit sends the first control level to the power matching module according to the power-on indication signal. When the MCU is powered on, in response to the second operation, the first output terminal of the on / off control circuit outputs a second indication signal to the MCU. The second indication signal is used to instruct the MCU to send a power-off indication signal to the second input terminal of the on / off control circuit. The on / off control circuit sends the second control level to the power matching module according to the power-off indication signal.

3. The circuit according to claim 2, characterized in that, The on / off control module also includes: A reset control circuit is provided, the output of which is electrically connected to the control terminal of the power matching module. The reset control circuit is used to send a reset control level to the power matching module in response to a reset operation.

4. The circuit according to claim 2, characterized in that, The on / off control circuit specifically includes: A first control unit, the input terminal of which is electrically connected to the power supply; a first output terminal of which is electrically connected to a first terminal of the MCU; a second output terminal of which is electrically connected to the control terminal of the power matching module; the first control unit is used to respond to a first operation / second operation, and the first output terminal of the first control unit outputs a first indication signal / second indication signal to the MCU; The second control unit has its input terminal electrically connected to the second terminal of the MCU; its output terminal is electrically connected to the control terminal of the power matching module; the second control unit is used to output a first level signal / second level signal according to the first indication signal / second indication signal. Wherein, the first output terminal of the first control unit is the first output terminal of the conduction control unit; the input terminal of the first control unit is the first input terminal of the conduction control unit; the input terminal of the second control unit is the second input terminal of the conduction control unit; and the output terminal of the second control unit is the second output terminal of the conduction control unit.

5. The circuit according to claim 4, characterized in that, The conduction control circuit further includes: The third control unit has an input terminal for electrical connection to the power supply and an output terminal for electrical connection to the control terminal of the power matching module. When an external power supply is connected, the third control unit adjusts the level of the control terminal of the power matching module to a first control level, so that the power matching module controls the conduction of the electrical connection between the power supply and the MCU.

6. The circuit according to claim 3, characterized in that, The reset control circuit specifically includes: A first normally open push-button switch, the first end of which is electrically connected to the control terminal of the power matching module, and the second end of which is grounded. The first terminal of the normally open push button is the output terminal of the reset control circuit.

7. The circuit according to claim 4, characterized in that, The first control unit specifically includes: A second normally open push-button switch, the first end of which is electrically connected to the power supply; The first diode has its input terminal electrically connected to the second terminal of the second normally open push button switch, and its output terminal electrically connected to the control terminal of the power matching module. The first transistor has its base electrically connected to the second terminal of the second normally open push-button switch, its emitter grounded, and its collector electrically connected to the first port of the MCU. A first resistor, the first end of which is electrically connected to the emitter of the first transistor, and the second end of which is electrically connected to the base of the first transistor; Wherein, the output terminal of the first diode is the second output terminal of the first control unit, the first terminal of the second normally open push button switch is the input terminal of the first control unit, and the collector of the first transistor is the first output terminal of the first control unit.

8. The circuit according to claim 4, characterized in that, The second control unit specifically includes: The second transistor has its emitter grounded and its base electrically connected to the second port of the MCU. The second resistor has its first end electrically connected to the emitter of the second transistor and its second end electrically connected to the base of the second transistor. The third resistor, the first end of which is electrically connected to the collector of the second transistor; The base of the third transistor is electrically connected to the second terminal of the third resistor, and the emitter of the third transistor is electrically connected to the power supply. The fourth resistor has its first end electrically connected to the emitter of the third transistor and its second end electrically connected to the base of the third transistor. The second diode has its input terminal electrically connected to the collector of the third transistor, and its output terminal electrically connected to the control terminal of the power matching module. The base of the second transistor is the input terminal of the second control unit, and the output terminal of the second diode is the output terminal of the second control unit.

9. The circuit according to claim 5, characterized in that, The third control unit specifically includes: The third diode has its input terminal used for power supply connection and its output terminal electrically connected to the control terminal of the power matching module. The input terminal of the third diode is the input terminal of the three control units; the output terminal of the third diode is the output terminal of the third control unit.

10. The circuit according to claim 1, characterized in that, The power matching module specifically includes: A first capacitor, the first terminal of which is electrically connected to the power supply terminal of the MCU, and the second terminal of which is grounded; The second capacitor has its first terminal electrically connected to the first terminal of the first capacitor. The fifth resistor has its first end electrically connected to the first end of the second capacitor, and its second end electrically connected to the second end of the second capacitor. The sixth resistor has its first end electrically connected to the second end of the fifth resistor, and its second end is grounded. An inductor, wherein the second end of the inductor is electrically connected to the first end of the fifth resistor; A buck converter, wherein the ground terminal of the buck converter is grounded, the output terminal of the buck converter is electrically connected to the first terminal of the inductor, the feedback terminal of the buck converter is electrically connected to the node between the sixth resistor and the fifth resistor, the input terminal of the buck converter is electrically connected to the power supply, and the enable terminal of the buck converter is electrically connected to the output terminal of the on / off control module. The third capacitor has its first terminal electrically connected to the input terminal of the buck converter, and its second terminal grounded. Wherein, the first terminal of the first capacitor is the output terminal of the power matching module, and the enable terminal of the buck converter is the control terminal of the power matching module.

11. A switch control chip, characterized in that, include: The power on / off control circuit according to any one of claims 1 to 10.