Power supply circuit and electronic device

By using separate I2C and UART microcontroller units in the power bank module, the system can be surface-mounted and then programmed, which solves the problem of high production cost of power banks, reduces production costs, and ensures production flexibility.

CN223693674UActive Publication Date: 2025-12-19XIAMEN LEELEN ELECTRICAL CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421945049.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2025-12-19
Estimated Expiration
2034-08-12

AI Technical Summary

Technical Problem

Existing power bank modules require chip programming before surface mounting because the microcontroller is programmed via I2C and cannot be programmed again after board-level programming. This increases production costs.

Method used

The microcontroller uses separate I2C and UART. The UART is used to program the microcontroller, and it connects to the power management unit via the I2C protocol. It supports surface mounting and programming, reducing production costs.

Benefits of technology

This enables programming after surface mounting, reducing production costs and avoiding the impact of program upgrades on production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223693674U_ABST
    Figure CN223693674U_ABST
Patent Text Reader

Abstract

The utility model relates to a power supply circuit and an electronic device, and the power supply circuit comprises a micro-control unit which is used for controlling electronic equipment and at least supports I2C and UART; the power supply management unit is connected with the micro-control unit through an I2C protocol, and the power supply management unit is used for controlling the lithium battery to carry out charging and discharging operation; the power supply unit is connected with the power supply management unit, and the power supply unit is used for storing or releasing electric energy; and the burning unit is connected with the micro-control unit through a UART (Universal Asynchronous Receiver / Transmitter), and the burning unit is used for writing the data information into the micro-control unit. By selecting the micro-control unit in which the I2C and the UART are separately arranged, and the UART is used for burning the micro-control unit, chip mounting and burning can be performed in sequence, so that the production cost and the equipment investment are reduced, and a user does not need to worry that program upgrading affects the production of a product.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power supply circuit, in particular to a power supply circuit and an electronic device. BACKGROUND

[0002] The power bank module mainly includes a battery unit for storing electrical energy, commonly used battery types include lithium ion battery (Li-ion) and lithium polymer battery (Li-Po); a charging module for converting external power (such as USB charger, solar panel, etc.) into electrical energy suitable for battery unit storage and charging the battery; a discharging module for converting electrical energy in the battery unit into electrical energy suitable for external devices (such as mobile phones, tablets, etc.); a control circuit for monitoring and managing the charging and discharging process of the power bank through a microcontroller or other control chip, to ensure safe and efficient operation.

[0003] In the prior art, the single-chip microcomputer used in the power bank module is programmed through I 2 C, I 2 C needs to communicate with the external control circuit, and after board-level programming, it cannot be programmed again, so that the chip needs to be programmed before the patch, resulting in high generation cost of the power bank. SUMMARY

[0004] Therefore, it is necessary to provide a power supply circuit and an electronic device to solve the problem that the chip needs to be programmed before the patch, resulting in high generation cost of the power bank.

[0005] In a first aspect, the present application provides a power supply circuit and an electronic device, comprising:

[0006] A micro control unit for controlling electronic equipment, the micro control unit supports at least I 2 C and UART;

[0007] A power management unit connected to the micro control unit through I 2 C protocol, the power management unit is used for controlling the charging and discharging operation of the lithium battery;

[0008] A power unit connected to the power management unit, the power unit is used for storing or releasing electrical energy;

[0009] A programming unit connected to the micro control unit through UART, the programming unit is used for writing data information into the micro control unit.

[0010] In one embodiment, the power supply circuit and the electronic device further comprise:

[0011] An NTC unit is connected to the micro control unit, and the NTC unit is configured to transmit temperature data to the micro control unit, and the power management unit is configured to control the power unit based on the temperature data.

[0012] In one of the embodiments, the power circuit and the electronic device further comprise:

[0013] A key unit is connected to the micro control unit, and the key unit is configured to send a preset trigger signal, and the micro control unit is configured to acquire the trigger signal sent by the key unit and send a corresponding control signal.

[0014] In one of the embodiments, the key unit further comprises:

[0015] When the key unit sends a preset number of trigger signals, the micro control unit sends a power start-stop signal corresponding to the preset number of trigger signals, and the micro control unit controls the power unit to start or stop through the power management unit.

[0016] In one of the embodiments, the key unit further comprises:

[0017] When the duration of the trigger signal sent by the key unit reaches a preset critical time, the micro control unit sends a power type signal corresponding to the trigger signal of the preset duration, and the micro control unit controls the output current of the power unit through the power management unit.

[0018] In one of the embodiments, the power circuit and the electronic device further comprise:

[0019] An analog switch unit is connected to the power management unit through TYPE-C, and the analog switch unit is configured to control a preset fast charging identification signal to be connected to a corresponding configuration channel, and the configuration channel comprises a first configuration channel and a second configuration channel.

[0020] In one of the embodiments, the analog switch unit further comprises:

[0021] When the first configuration channel is high and the second configuration channel is low, the analog switch unit is turned on with the first configuration channel and connects the preset fast charging identification signal to the first configuration channel.

[0022] In one of the embodiments, the analog switch unit further comprises:

[0023] When the second configuration channel is high and the first configuration channel is low, the analog switch unit is turned on with the second configuration channel and connects the preset fast charging identification signal to the second configuration channel.

[0024] In one of the embodiments, the power supply circuit and electronic device further comprises:

[0025] When the power management unit enters the fast charging state, the micro control unit outputs high level through I 2 C to read the fast charging flag bit of the power management unit, and the control unit outputs high level through the I / O port to control the corresponding LED lamp to light up.

[0026] In one of the embodiments, the power management unit further comprises:

[0027] The power detection unit is connected with the power supply unit, and is configured to detect the power information corresponding to the power supply unit; the micro control unit acquires the power information and outputs high level through the I / O port to control the preset LED lamp matched with the power information to light up.

[0028] The power supply circuit and electronic device, the micro control unit is configured to control the electronic device, and the micro control unit supports at least I 2 C and UART; the power management unit is connected with the micro control unit through I 2 C protocol, and is configured to control the lithium battery to perform charging and discharging operation; the power supply unit is connected with the power management unit, and is configured to store or release electric energy; the burning unit is connected with the micro control unit through UART, and is configured to write data information into the micro control unit. By selecting the micro control unit provided separately from I 2 C and UART, the UART is used for burning the micro control unit, the micro control unit can be pasted and burned first, the production cost and equipment investment are reduced, and it is not necessary to worry about that the program upgrade will affect the production of the product. BRIEF DESCRIPTION OF DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0030] Figure 1 It is a circuit schematic diagram of the existing technology of the power bank module;

[0031] Figure 2 It is a structure schematic diagram of the power supply circuit and electronic device in some embodiments of the present application;

[0032] Figure 3The circuit schematic diagram of the specific connection relationship of the power supply circuit and the electronic device circuit in some embodiments of the present application. DETAILED DESCRIPTION

[0033] In order to make the above objectives, characteristics and advantages of the present application more apparent, specific embodiments of the present application are described in detail below with reference to the accompanying drawings. In the following description, a large number of specific details are set forth in order to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without departing from the spirit of the present application, so the present application is not limited to the specific embodiments disclosed below.

[0034] In the description of the present application, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the purpose of facilitating the description of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application.

[0035] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "a plurality of" is at least two, for example, two, three, etc., unless otherwise explicitly specified and limited.

[0036] In the present application, unless otherwise explicitly specified and limited, the terms "mounting", "connection", "connection", "fixing" and the like should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or it can be integrated; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium; it can be the internal communication of two elements or the interaction relationship between two elements, unless otherwise explicitly limited. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0037] In this application, unless otherwise explicitly specified and limited, a first feature is "on" or "under" a second feature can be that the first and second features are in direct contact, or the first and second features are indirectly in contact through an intermediate medium. Moreover, the first feature "over", "above" and "on" the second feature can be that the first feature is directly above or obliquely above the second feature, or only indicates that the first feature is higher in horizontal height than the second feature. The first feature "under", "below" and "under" the second feature can be that the first feature is directly below or obliquely below the second feature, or only indicates that the first feature is lower in horizontal height than the second feature.

[0038] It should be noted that when an element is referred to as "fixed to" or "provided on" another element, it can be directly on the other element or there can be an intermediate element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there can be an intermediate element. The terms "vertical", "horizontal", "up", "down", "left", "right" and similar expressions used herein are only for illustrative purposes and do not represent the only implementation.

[0039] Reference Figure 1 In order to solve the problem that the single-chip microcomputer used by the power bank module in the related art is programmed through I 2 C, I 2 C needs to communicate with an external control circuit, and after board programming, it cannot be programmed again, so the chip needs to be programmed before the patch, resulting in a higher cost of generating the power bank. In a first aspect, referring to Figure 2 and Figure 3 , an embodiment of the present application provides a power supply circuit and an electronic device, which includes a micro control unit, the micro control unit is used to control an electronic device, and the micro control unit supports at least I 2 C and UART;

[0040] A power management unit is connected to the micro control unit through I 2 C protocol, and the power management unit is used to control the charging and discharging operation of a lithium battery;

[0041] A power supply unit is connected to the power management unit, and the power supply unit is used to store or release electric energy;

[0042] A programming unit is connected to the micro control unit through UART, and the programming unit is used to write data information into the micro control unit.

[0043] Wherein, I 2 C (Inter-Integrated Circuit) is a widely used serial communication protocol, mainly used for communication between short distance devices, and I2 C has become one of the standard interfaces for communication between embedded systems and microcontrollers; UART (Universal Asynchronous Receiver / Transmitter) is a hardware device for serial communication, widely used in data transmission between computers and embedded systems. UART allows two devices to exchange data without a synchronous clock signal;

[0044] MCU (Microcontroller Unit) is a chip that integrates microprocessor, memory and input / output (I / O) peripherals for controlling electronic devices; burning unit refers to the process of writing programs or firmware into microcontrollers (MCU), memory chips or other programmable devices. In embedded system development and electronic product manufacturing, it is a key step. The purpose of burning is to enable microcontrollers or chips to perform specific tasks or functions.

[0045] In this embodiment, by selecting I 2 C and the microcontroller unit is set separately, and the UART is used for burning the microcontroller unit, which can achieve pre-soldering and post-burning, reduce production cost and equipment investment, and there is no need to worry about the impact of program upgrade on product production.

[0046] Referring to Figure 2 and Figure 3 In some embodiments, the NTC unit is connected to the microcontroller unit, and the NTC unit is used to transmit temperature data to the microcontroller unit, and the power management unit controls the power unit based on the temperature data.

[0047] Among them, NTC (Negative Temperature Coefficient) is a temperature sensor, whose resistance value decreases with the increase of temperature. This characteristic makes NTC resistor very useful in various temperature measurement and control applications.

[0048] In this embodiment, by placing NTC at the MCU end, the protection temperature can be defined by itself. The original scheme places NTC at U1 end, which will turn off the power bank at 60℃. If NTC is placed on the PCB, it will affect customer use, but using plug-in NTC will affect production process. Therefore, placing NTC at the MCU end can set the appropriate protection temperature, which neither affects user experience nor production process.

[0049] Referring to Figure 2 and Figure 3 In some embodiments, a power supply circuit and an electronic device further comprise:

[0050] The key unit is connected with the micro control unit, and the key unit is used for sending a preset trigger signal. The micro control unit acquires the trigger signal sent by the key unit and sends a corresponding control signal.

[0051] Among them, the key connects the MCU interrupt port 0. When the power bank is in sleep state, press the key once, the power bank starts immediately. Press the key twice, the power bank shuts down. Long press the key, the power bank enters the small current mode.

[0052] In this embodiment, by setting the key unit, the power bank can be quickly started or stopped, and the power bank can also be quickly started to the preset charging mode.

[0053] It is worth mentioning that the key unit further comprises:

[0054] When the key unit sends a preset number of trigger signals, the micro control unit sends a power on-off signal corresponding to the preset number of trigger signals, and the micro control unit controls the power unit to start or stop through the power management unit;

[0055] When the duration of the trigger signal sent by the key unit reaches a preset critical time, the micro control unit sends a power type signal corresponding to the trigger signal of the preset time length, and the micro control unit controls the output current of the power unit through the power management unit.

[0056] Reference Figure 2 and Figure 3 In some embodiments, a power supply circuit and an electronic device further comprise:

[0057] The analog switch unit is connected with the power management unit through TYPE-C. The analog switch unit controls the preset fast charging identification signal to be connected to the corresponding configuration channel. The configuration channel includes a first configuration channel and a second configuration channel.

[0058] Among them, USB Type-C (USB-C) is a kind of universal serial bus (USB) connector standard, which has many advanced features and advantages. Its design goal is to provide higher data transmission speed, higher power transmission capacity and more flexible connection mode;

[0059] It is worth mentioning that in the USB Type-C (USB-C) connector, CCC1 and CCC2 refer to configuration channel (Configuration Channel) pins. These pins play an important role in the specification of USB-C connector, especially in the implementation of USB Power Delivery (USB PD) protocol and other advanced functions;

[0060] CCC1 and CCC2 pins are used to detect the insertion of USB-C cable. By detecting the connection state of these pins, the device can identify whether the USB-C cable has been inserted correctly; since the USB-C connector is reversible, i.e. can be inserted in both positive and negative directions, CCC1 and CCC2 pins are also used to detect the insertion direction. By detecting these two pins, the device can determine the direction of the cable and adjust the allocation of signals and power accordingly; CCC1 and CCC2 pins are used to configure channel communication. These pins support the USB PD protocol, and by configuring channel communication, the device can negotiate power transmission parameters (such as voltage and current) and other advanced functions (such as Alternate Modes).

[0061] In this embodiment, there are many types of TYPE-C ports on the market, some of which have CCC1 and CCC2 connected together, some of which have CCC2 and CCC2 separated, and some of which have only CCC1. In this way, TYPE C has the difference between positive and negative insertion. In order to let the customer not to identify the positive and negative insertion to enter the fast charging, the application controls the fast charging identification signal CL of the charging chip to connect CCC1 or CCC2 through U4 analog switch.

[0062] Referring to Figure 2 and Figure 3 In some embodiments, the analog switch unit further comprises:

[0063] When the first configuration channel is high and the second configuration channel is low, the analog switch unit is turned on with the first configuration channel and connects the preset fast charging identification signal to the first configuration channel; when the second configuration channel is high and the first configuration channel is low, the analog switch unit is turned on with the second configuration channel and connects the preset fast charging identification signal to the second configuration channel.

[0064] Wherein, the application controls the fast charging identification signal CL of the charging chip to connect CCC1 or CCC2 through U4 analog switch. When the signal of CCC1 is high (>0.8V) and the signal of CCC2 is low (<0.4V), the EN pin of MCU outputs high level, and the COM end of U4 is connected to NO, so that the charging chip can identify high level and enter fast charging. If the signal of CCC2 is high, then the EN pin is output low, and the COM end is connected to CCC2, which can also make the charging chip enter fast charging.

[0065] Referring to Figure 2 and Figure 3 In some embodiments, a power supply circuit and an electronic device further comprise:

[0066] When the power management unit enters the fast charging state, the micro control unit connects the preset fast charging identification signal to the first configuration channel through I2 C reads the fast charging flag bit of the power management unit, which is controlled by the I / O port output high level to control the fast charging display corresponding LED light.

[0067] When U1 enters the fast charging state, the MCU reads the fast charging flag bit of U1 through I2C, and the LED I / O port outputs high level to light up the four fast charging display LED lights.

[0068] Referring to Figure 2 and Figure 3 In some embodiments, the power management unit further comprises:

[0069] The power detection unit is connected with the power supply unit, and the power detection unit is used to detect the power information corresponding to the power supply unit. The micro control unit acquires the power information and outputs high level through the I / O port to control the preset LED light matching the power information.

[0070] The charging chip U1 has a built-in power meter detection function. The MCU reads the power information of U1 through I2C, and then controls the digital tube light through the I / O port LED1, LED2, LED3, LED4, LED5 and LED6 to display the current power information.

[0071] In the present application, a MCU with 4-way interrupt, I2C and UART separated is selected. The MCU uses UART upgrade program, I2C and U1 communication, so that it can be done before the patch after programming, which can reduce production cost and equipment investment, and there is no need to worry about the program upgrade will affect the production of the product. The NTC is placed at the MCU end, which can define the protection temperature by itself. The original scheme places the NTC at the U1 end, which will shut down the power bank at 60℃. If the NTC is placed on the PCB, it will affect the customer use, but the plug-in NTC will affect the production process. Therefore, placing the NTC at the MCU end can set the appropriate protection temperature by itself, which does not affect the user experience and does not affect the production process.

[0072] In the description of the present specification, the description of the terms "some embodiments", "other embodiments" and the like means that the specific features, structures, materials or characteristics described in combination with the embodiments or examples are contained in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example.

[0073] The technical features of the above-described embodiments can be combined arbitrarily. In order to make the description simple, not all possible combinations of the technical features in the above-described embodiments are described, however, as long as the combinations of the technical features do not exist contradictory, they should be considered as the scope of the present specification.

[0074] The above-described embodiments are merely illustrative of several embodiments of the present application, which are described in more detail and in a more specific and detailed manner, but should not be construed as limiting the scope of the patent application. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.

Claims

1. A power supply circuit and an electronic device, characterized by comprising: The power supply circuit and the electronic device include: a micro control unit for controlling the electronic device, the micro control unit supporting at least I 2 C and UART; a power management unit connected to the micro control unit through I 2 The C protocol is connected with the micro control unit, and the power management unit is used for controlling the lithium battery to charge and discharge. A power supply unit connected with the power management unit, the power supply unit is used for storing or releasing electric energy; A burning unit connected with the micro control unit through UART, the burning unit is used for writing data information into the micro control unit.

2. The power supply circuit and electronic device according to claim 1, wherein The power supply circuit and the electronic device further include: An NTC unit connected with the micro control unit, the NTC unit is used for transmitting temperature data to the micro control unit, and the power management unit controls the power supply unit based on the temperature data.

3. The power supply circuit and electronic device according to claim 1, wherein The power supply circuit and the electronic device further include: A key unit connected with the micro control unit, the key unit is used for sending a preset trigger signal, and the micro control unit acquires the trigger signal sent by the key unit and sends a corresponding control signal.

4. The power supply circuit and electronic device according to claim 3, wherein The key unit further includes: When the key unit sends a preset number of trigger signals, the micro control unit sends a power start-stop signal corresponding to the preset number of trigger signals, and the micro control unit controls the power supply unit to start or stop through the power management unit.

5. The power supply circuit and electronic device according to claim 3, wherein The key unit further includes: When the duration of the trigger signal sent by the key unit reaches a preset critical time, the micro control unit sends a power type signal corresponding to the trigger signal of the preset time length, and the micro control unit controls the output current of the power supply unit through the power management unit.

6. The power supply circuit and electronic device according to claim 1, wherein The power supply circuit and the electronic device further include: An analog switch unit connected with the power management unit through TYPE-C, the analog switch unit controls a preset fast charging identification signal to be connected to a corresponding configuration channel, and the configuration channel includes a first configuration channel and a second configuration channel.

7. The power supply circuit and electronic device according to claim 6, wherein The analog switch unit further includes: When the first configuration channel is high and the second configuration channel is low, the analog switch unit is turned on with the first configuration channel and connects the preset fast charging identification signal to the first configuration channel. 8.The power supply circuit and electronic device according to claim 6, wherein The analog switch unit further includes: When the second configuration channel is high and the first configuration channel is low, the analog switch unit is turned on with the second configuration channel and connects the preset fast charging identification signal to the second configuration channel.

9. The power supply circuit and electronic device according to claim 1, wherein The power supply circuit and the electronic device further include: When the power management unit enters the fast charging state, the micro control unit outputs high level through I 2 C reads the fast charging flag bit of the power management unit, and the control unit outputs high level through the I / O port to control the fast charging display to light the corresponding LED lamp.

10. The power supply circuit and electronic device according to claim 1, wherein The power management unit further includes: An electric quantity detection unit connected with the power supply unit, the electric quantity detection unit is used for detecting electric quantity information corresponding to the power supply unit, and the micro control unit acquires the electric quantity information and outputs a high level through an I / O port to control a preset LED lamp matching the electric quantity information to be bright.