Charging and single-chip microcomputer burning circuit based on USB interface

By designing a charging and microcontroller recording circuit based on USB interface, the problem of inconvenience in burning the charging device is solved, and the convenience of charging and burning the same interface is realized.

CN223167101UActive Publication Date: 2025-07-29SHENZHEN ZHENBANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421788896.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2025-07-29
Estimated Expiration
2034-07-26

AI Technical Summary

Technical Problem

Existing charging devices need to be disassembled before software updates are performed, resulting in less convenience.

Method used

A charging and microcontroller recording circuit based on USB interface is designed, including switching circuits, recording circuits and charging circuits. By switching between the recording mode and the charging mode, multiplexing of an interface is achieved.

Benefits of technology

It realizes charging and recording of microcontrollers through a USB interface, improving convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223167101U_ABST
    Figure CN223167101U_ABST
Patent Text Reader

Abstract

The utility model provides a charging and single-chip microcomputer burning circuit based on a USB interface. The charging and single-chip microcomputer burning circuit based on the USB interface comprises a switching circuit, a burning circuit and a charging circuit, the input end of the burning circuit is connected with the switching circuit; the input end of the charging circuit is connected with a power supply, the controlled end of the charging circuit is connected with the burning circuit, and the output end of the charging circuit is connected with a charging interface. According to the utility model, the burning of the charging equipment and the charging of the electronic equipment can be realized through one interface, so that the convenience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of charging devices, and particularly relates to a charging and single-chip microcomputer programming circuit based on a USB interface. Background Art

[0002] At present, most charging devices, such as power banks or chargers, are only equipped with one USB port for charging electronic devices. When it is necessary to update the software of the charging device, the charging device needs to be disassembled, and the software update is carried out for the charging device through the built-in programming port, resulting in low convenience. Content of the Utility Model

[0003] The utility model provides a charging and single-chip microcomputer programming circuit based on a USB interface, aiming to solve the problem that the current charging devices are not convenient for programming.

[0004] The utility model provides a charging and single-chip microcomputer programming circuit based on a USB interface, including a switching circuit, a programming circuit, and a charging circuit; the input end of the programming circuit is connected to the switching circuit; the input end of the charging circuit is connected to a power supply, the controlled end of the charging circuit is connected to the programming circuit, and the output end of the charging circuit is connected to a charging interface.

[0005] Further, the programming circuit includes a control chip, a self-locking circuit, and a connection circuit; one end of the self-locking circuit is connected to the control chip, and the other end of the self-locking circuit is connected to the connection circuit; one end of the connection circuit is respectively connected to the control chip and the self-locking circuit, and the other end of the connection circuit is respectively connected to the charging circuit and the control chip.

[0006] Further, the self-locking circuit includes a first switching tube and a second switching tube; the controlled end of the first switching tube is connected to the control chip, the first pole of the first switching tube is grounded, the second pole of the first switching tube is connected to the controlled end of the second switching tube, the first pole of the second switching tube is connected to the power supply, and the second pole of the second switching tube is connected to the control chip.

[0007] Further, the self-locking circuit further includes a first resistor, a second resistor, and a third resistor; one end of the first resistor and one end of the second resistor are both connected to the control chip, the other end of the first resistor is grounded, the other end of the second resistor is connected to the second pole of the second switching tube, one end of the third resistor is connected to the power supply, and the other end of the third resistor is connected to the second pole of the first switching tube.

[0008] Further, the connection circuit includes a third switching transistor, a fourth switching transistor, a first relay, and a second relay; the control terminals of the third switching transistor and the fourth switching transistor are both connected to the control chip, the first poles of the third switching transistor and the fourth switching transistor are both grounded, the second pole of the third switching transistor is connected to the first relay, and the second pole of the fourth switching transistor is connected to the second relay; the first relay is respectively connected to the charging circuit and the control chip, and the second relay is respectively connected to the charging circuit and the control chip.

[0009] Further, the connection circuit further includes a first diode and a second diode; the positive electrode of the first diode is connected to the second pole of the third switching transistor, and the negative electrode of the first diode is connected to the power supply; the positive electrode of the second diode is connected to the second pole of the fourth switching transistor, and the negative electrode of the second diode is connected to the power supply.

[0010] Further, the charging circuit includes a protocol chip, and the protocol chip is respectively connected to the first relay, the second relay, and the charging interface.

[0011] Further, the charging circuit further includes a power chip, and the power chip is respectively connected to the power supply and the protocol chip.

[0012] Further, the charging circuit further includes a fifth switching transistor, the control terminal of the fifth switching transistor is connected to the protocol chip, the first pole of the fifth switching transistor is connected to the power chip, and the second pole of the fifth switching transistor is connected to the charging interface.

[0013] Further, the charging circuit further includes a first capacitor and a second capacitor; one end of the first capacitor and one end of the second capacitor are both connected to the power supply, and the other ends of the first capacitor and the second capacitor are both grounded.

[0014] The charging and single-chip microcomputer programming circuit based on the USB interface disclosed by the present utility model includes a switching circuit, a programming circuit, and a charging circuit. The switching circuit is connected to the programming circuit, and the user can switch between the programming mode and the charging mode through the switching circuit. In the programming mode, the single-chip microcomputer can be programmed through the programming circuit, and in the charging mode, the electronic device can be charged through the charging circuit, thereby realizing the multiplexing of one interface and improving the convenience. Description of the Drawings

[0015] To more clearly illustrate the technical solutions of the embodiments of the present utility model, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present utility model. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0016] Figure 1 It is a block diagram of a charging and single-chip microcomputer programming circuit based on a USB interface provided by an embodiment of the present utility model;

[0017] Figure 2 It is a block diagram of a charging and single-chip microcomputer programming circuit based on a USB interface provided by another embodiment of the present utility model;

[0018] Figure 3 It is a circuit diagram of a programming circuit provided by an embodiment of the present utility model;

[0019] Figure 4 It is a circuit diagram of a charging circuit provided by an embodiment of the present utility model. Detailed implementation manners

[0020] The following will clearly and completely describe the technical solutions in the embodiments of the present utility model in conjunction with the drawings in the embodiments of the present utility model. Obviously, the described embodiments are some, but not all, of the embodiments of the present utility model. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present utility model.

[0021] It should be understood that when used in this specification and the appended claims, the terms "comprises" and "comprising" indicate the presence of the described features, wholes, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, operations, elements, components, and / or their combinations.

[0022] It should also be understood that the terms used in this specification of the present utility model are only for the purpose of describing specific embodiments and are not intended to limit the present utility model. As used in this specification of the present utility model and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms. It should also be further understood that the term " / and / " used in this specification of the present utility model and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0023] In addition, the directional terms mentioned in the present utility model, such as "up", "down", "front", "rear", "left", "right", "inside", "outside", "side", etc., are only references to the directions of the attached drawings and the usage state of the product. Therefore, the directional terms used are for explaining and understanding the present utility model, rather than for limiting the present utility model. In addition, in the drawings, structures that are similar or identical are denoted by the same reference numerals.

[0024] See Figures 1 to 4 , Figure 1 is a block diagram of a charging and microcontroller programming circuit 100 based on a USB interface provided by an embodiment of the present utility model; Figure 2 is a block diagram of a charging and microcontroller programming circuit 100 based on a USB interface provided by another embodiment of the present utility model; Figure 3 is a circuit diagram of a programming circuit 20 provided by an embodiment of the present utility model; Figure 4 is a circuit diagram of a charging circuit 30 provided by an embodiment of the present utility model. As Figure 1 shown, the charging and microcontroller programming circuit 100 based on a USB interface includes a switching circuit 10, a programming circuit 20, and a charging circuit 30; the input end of the programming circuit 20 is connected to the switching circuit 10; the input end of the charging circuit 30 is connected to a power supply, the controlled end of the charging circuit 30 is connected to the programming circuit 20, and the output end of the charging circuit 30 is connected to a charging interface.

[0025] Specifically, the charging and microcontroller programming circuit 100 based on a USB interface includes a switching circuit 10, a programming circuit 20, and a charging circuit 30. The switching circuit 10 is connected to the programming circuit 20, and it may include a switching switch SW1. The mode can be switched through the switching switch SW1. The modes can include a programming mode and a charging mode. When in the programming mode, the microcontroller can be updated. When in the charging mode, the electronic device 200 can be charged. In addition, the way to switch the mode of the switching switch SW1 can also be customized. For example, double-click the switching switch SW1 to enter the programming mode, triple-click the switching switch SW1 to enter the charging mode, or press the switching switch SW1 three times short, press the switching switch SW1 once long to enter the programming mode. The specific way is not limited here. The programming circuit 20 is connected to the charging circuit 30. When in the programming mode, the programming circuit 20 is connected to the charging circuit 30, and the charging of the electronic device 200 is disconnected.

[0026] As a further embodiment, the programming circuit 20 includes a control chip IC1, a self-locking circuit 21, and a connection circuit 22; one end of the self-locking circuit 21 is connected to the control chip IC1, and the other end of the self-locking circuit 21 is connected to the connection circuit 22; one end of the connection circuit 22 is respectively connected to the control chip IC1 and the self-locking circuit 21, and the other end of the connection circuit 22 is respectively connected to the charging circuit 30 and the control chip IC1.

[0027] Among them, the control chip IC1 is connected to the self-locking circuit 21 and the connection circuit 22. When entering the programming mode, the control chip IC1 controls the self-locking circuit 21 and the connection circuit 22 to conduct. The self-locking circuit 21 is used to maintain the conduction of the connection circuit 22. The connection circuit 22 is connected to the charging circuit 30. When the connection circuit 22 conducts, the charging circuit 30 is connected to the control chip IC1 through the connection circuit 22, and the charging of the electronic device 200 is disconnected.

[0028] As a further embodiment, the self-locking circuit 21 includes a first switching tube Q1 and a second switching tube Q2; the controlled end of the first switching tube Q1 is connected to the control chip IC1, the first pole of the first switching tube Q1 is grounded, the second pole of the first switching tube Q1 is connected to the controlled end of the second switching tube Q2, the first pole of the second switching tube Q2 is connected to the power supply, and the second pole of the second switching tube Q2 is connected to the control chip IC1. Further, the self-locking circuit 21 further includes a first resistor R1, a second resistor R2, and a third resistor R3; one end of the first resistor R1 and one end of the second resistor R2 are both connected to the control chip IC1, the other end of the first resistor R1 is grounded, the other end of the second resistor R2 is connected to the second pole of the second switching tube Q2, one end of the third resistor R3 is connected to the power supply, and the other end of the third resistor R3 is connected to the second pole of the first switching tube Q1.

[0029] Among them, the first switching tube Q1 and the second switching tube Q2 form the self-locking circuit 21. When in the programming mode, the first switching tube Q1 and the second switching tube Q2 conduct. The first switching tube Q1 can be an NMOS tube, and the second switching tube Q2 can be a PMOS tube. The third resistor R3 is the GS resistor of the second switching tube Q2, which is used to increase the anti-interference ability. The second resistor R2 is also used to increase the anti-interference ability of the first switching tube Q1. The first resistor R1 is a current-limiting resistor to prevent a large current from breaking down the pin of the control chip IC1.

[0030] As a further embodiment, the connection circuit 22 includes a third switching transistor Q3, a fourth switching transistor Q4, a first relay RY1, and a second relay RY2; the controlled terminals of the third switching transistor Q3 and the fourth switching transistor Q4 are both connected to the control chip IC1, the first poles of the third switching transistor Q3 and the fourth switching transistor Q4 are both grounded, the second pole of the third switching transistor Q3 is connected to the first relay RY1, and the second pole of the fourth switching transistor Q4 is connected to the second relay RY2; the first relay RY1 is respectively connected to the charging circuit 30 and the control chip IC1, and the second relay RY2 is respectively connected to the charging circuit 30 and the control chip IC1. Further, the connection circuit 22 further includes a first diode and a second diode; the positive electrode of the first diode is connected to the second pole of the third switching transistor Q3, and the negative electrode of the first diode is connected to the power supply; the positive electrode of the second diode is connected to the second pole of the fourth switching transistor Q4, and the negative electrode of the second diode is connected to the power supply.

[0031] Among them, both the third switching transistor Q3 and the fourth switching transistor Q4 are connected to the control chip IC1. When in the programming mode, the third switching transistor Q3 and the fourth switching transistor Q4 are turned on, and under the action of the self-locking circuit 21, the third switching transistor Q3 and the fourth switching transistor Q4 remain continuously turned on. When the third switching transistor Q3 and the fourth switching transistor Q4 are turned on, the first relay RY1 connects the charging circuit 30 and the control chip IC1, and the second relay RY2 connects the charging circuit 30 and the control chip IC1. The charging circuit 30 is connected to the SWDIO pin and the SWDCLK pin of the control chip IC1. The first relay RY1 and the second relay RY2 can be single-pole double-throw relays, and the third switching transistor Q3 and the fourth switching transistor Q4 can be MOS transistors.

[0032] When the user needs to perform programming, the programming mode is entered through the switching circuit 10. The control chip IC1 controls the self-locking circuit 21, the third switching transistor Q3, and the fourth switching transistor Q4 to be turned on, then the first relay RY1 and the second relay RY2 are turned on, and the charging circuit 30 is connected to the SWDIO pin and the SWDCLK pin of the control chip IC1, and the update starts. After the update is completed, the control chip IC1 outputs a level signal to control the reset of the self-locking circuit 21, and the device enters the charging mode, and the charging circuit 30 can be used normally.

[0033] As a further embodiment, the charging circuit 30 includes a protocol chip U1, and the protocol chip U1 is respectively connected to the first relay RY1, the second relay RY2 and the charging interface. Further, the charging circuit 30 further includes a power supply chip U2, and the power supply chip U2 is respectively connected to the power supply and the protocol chip U1. Further, the charging circuit 30 further includes a fifth switching transistor Q5. The controlled end of the fifth switching transistor Q5 is connected to the protocol chip U1, the first pole of the fifth switching transistor Q5 is connected to the power supply chip U2, and the second pole of the fifth switching transistor Q5 is connected to the charging interface. Further, the charging circuit 30 further includes a first capacitor C1 and a second capacitor C2. One end of the first capacitor C1 and one end of the second capacitor C2 are both connected to the power supply, and the other ends of the first capacitor C1 and the second capacitor C2 are both grounded. The switching circuit 10, the programming circuit 20 and the charging circuit 30; the input end of the programming circuit 20 is connected to the switching circuit 10; the input end of the charging circuit 30 is connected to the power supply, the controlled end of the charging circuit 30 is connected to the programming circuit 20, and the output end of the charging circuit 30 is connected to the charging interface.

[0034] Among them, the DM2 pin of the protocol chip U1 is connected to the first relay RY1, and the DP2 pin is connected to the second relay RY2. When in the programming mode, the first relay RY1 and the second relay RY2 are turned on, and the DM2 pin and the DP2 pin of the protocol chip U1 are connected to the SWDIO pin and the SWDCLK pin of the control chip IC1 to start programming. The first capacitor C1 can be an electrolytic capacitor. The first capacitor C1 and the second capacitor C2 are energy storage capacitors for reducing high-frequency and low-frequency ripple currents on the input power supply loop. The power supply chip U2 is used to transfer the input energy to the first inductor L1L1 and the fourth capacitor C4. The fifth switching transistor Q5 can be an NMOS transistor, which is used to connect the charging interface and the power supply chip U2, and is turned on when at a high level and turned off when at a low level.

[0035] In the charging mode, the feedback pin FB of the protocol chip U1 is connected to the power supply chip U2, and the protocol chip U1 is used to control the power supply chip U2 to adjust the output voltage according to the voltage required by the electronic device 200 to meet the requirements of the electronic device 200.

[0036] The charging and microcontroller programming circuit based on the USB interface disclosed in the present invention can realize the programming of the electronic device and the programming of the charging device through a single USB interface, improving convenience.

[0037] The above are only the specific embodiments of the present utility model, but the protection scope of the present utility model is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present utility model can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present utility model. Therefore, the protection scope of the present utility model shall be subject to the protection scope of the claims.

Claims

1. A charging and single-chip microcomputer programming circuit based on a USB interface, characterized in that, Comprising: A switching circuit; A programming circuit, the input end of the programming circuit is connected to the switching circuit; A charging circuit, the input end of the charging circuit is connected to a power supply, the controlled end of the charging circuit is connected to the programming circuit, and the output end of the charging circuit is connected to a charging interface; The programming circuit includes a control chip, a self-locking circuit, and a connection circuit; One end of the self-locking circuit is connected to the control chip, and the other end of the self-locking circuit is connected to the connection circuit; One end of the connection circuit is respectively connected to the control chip and the self-locking circuit, and the other end of the connection circuit is respectively connected to the charging circuit and the control chip; The self-locking circuit includes a first switching tube and a second switching tube; The controlled end of the first switching tube is connected to the control chip, the first pole of the first switching tube is grounded, the second pole of the first switching tube is connected to the controlled end of the second switching tube, the first pole of the second switching tube is connected to the power supply, and the second pole of the second switching tube is connected to the control chip; The self-locking circuit further includes a first resistor, a second resistor, and a third resistor; One end of the first resistor and one end of the second resistor are both connected to the control chip, the other end of the first resistor is grounded, the other end of the second resistor is connected to the second pole of the second switching tube, one end of the third resistor is connected to the power supply, and the other end of the third resistor is connected to the second pole of the first switching tube; The connection circuit includes a third switching tube, a fourth switching tube, a first relay, and a second relay; The controlled ends of the third switching tube and the fourth switching tube are both connected to the control chip, the first poles of the third switching tube and the fourth switching tube are both grounded, the second pole of the third switching tube is connected to the first relay, and the second pole of the fourth switching tube is connected to the second relay; The first relay is respectively connected to the charging circuit and the control chip, and the second relay is respectively connected to the charging circuit and the control chip; The connection circuit further includes a first diode and a second diode; The positive pole of the first diode is connected to the second pole of the third switching tube, and the negative pole of the first diode is connected to the power supply; The positive pole of the second diode is connected to the second pole of the fourth switching tube, and the negative pole of the second diode is connected to the power supply.

2. The charging and single-chip microcomputer programming circuit based on a USB interface according to claim 1, wherein the charging circuit includes a protocol chip, and the protocol chip is respectively connected to the first relay, the second relay, and the charging interface.

3. The charging and single-chip microcomputer programming circuit based on a USB interface according to claim 2, wherein the charging circuit further includes a power supply chip, and the power supply chip is respectively connected to the power supply and the protocol chip.

4. The charging and microcontroller programming circuit based on the USB interface according to claim 3, wherein the charging circuit further includes a fifth switching transistor, the controlled end of the fifth switching transistor is connected to the protocol chip, the first pole of the fifth switching transistor is connected to the power supply chip, and the second pole of the fifth switching transistor is connected to the charging interface.

5. The charging and microcontroller programming circuit based on the USB interface according to claim 2, wherein the charging circuit further includes a first capacitor and a second capacitor; One end of the first capacitor and one end of the second capacitor are both connected to the power supply, and the other ends of the first capacitor and the second capacitor are both grounded.