Program upgrade application circuit and program upgrade application device

By designing program upgrade application circuits based on external interfaces in electronic products, and using voltage-stable power control modules and controller modules, safe and efficient program upgrades without disassembling the shell, solving the upgrade efficiency in the existing technology The low and high cost issues reduce risks and improve service efficiency.

CN113407195BActive Publication Date: 2024-12-31SHENZHEN CARKU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010180872.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-16
Publication Date
2024-12-31
Estimated Expiration
2040-03-16

AI Technical Summary

Technical Problem

When existing electronic products are updated in functions or abnormal programs, they need to disassemble the shell for program upgrade or burn, resulting in low after-sales service efficiency, high cost, and the risk of abnormal output voltage of external power supply damage to the controller module.

Method used

Design a program upgrade application circuit based on external interface, including the first interface unit, the controller module and the voltage stabilization power control module, directly burn or upgrade the program through the external interface, use the terminal equipment to provide the input voltage, and control the voltage stabilization power The module outputs the drive voltage to ensure safe upgrade of the program without disassembling the product housing.

Benefits of technology

It realizes efficient program upgrade or burning without affecting the normal use of the product, reduces after-sales service costs, improves work efficiency, and avoids the risk of damaging the controller module due to abnormal output voltage of the external power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113407195B_ABST
    Figure CN113407195B_ABST
Patent Text Reader

Abstract

The present application discloses a program upgrade application circuit, and a program upgrade application device including the aforementioned program upgrade application circuit. The program upgrade application circuit includes: a first interface unit, a controller module and a voltage-regulated power supply control module. The first interface unit is electrically connected to the controller module and the voltage-regulated power supply control module, and is used to receive an external data signal and a first input voltage. The controller module is electrically connected to the voltage-regulated power supply control module, and the voltage-regulated power supply control module includes a first power supply unit and a second power supply unit. When the controller module receives a data signal, it outputs a power enable signal to the voltage-regulated power supply control module, controls the first power supply unit to be electrically cut off, and stops providing a driving voltage. The second power supply unit outputs a driving voltage to the controller module according to the received first input voltage. When the controller module does not receive an external data signal, the first power supply unit outputs a driving voltage to the controller module according to the received external power supply voltage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a program upgrade application circuit and a program upgrade application device. Background Art

[0002] With the continuous development of science and technology and the progress of the times, various electronic products have been widely used in all walks of life in society, and the various functions of electronic products are constantly updated and upgraded to meet the needs of use. Among various electronic products, most use programmable control units (Microcontroller Unit, MCU) to control products to achieve corresponding functions.

[0003] At present, the control units in various electronic products on the market are upgraded or burned to the programs in the control units before the electronic products are assembled. Then the electronic products are assembled. When the functions in the electronic products need to be updated or the programs are abnormal, and the programs need to be updated or burned again, the shell of the electronic products must be disassembled, and then the control units on the control board are connected to update or burn the programs, which reduces the efficiency of after-sales service, not only increases the after-sales service costs of the products, but also causes economic losses in manpower and material resources. Summary of the invention

[0004] In order to solve the above-mentioned problem, a program upgrade application circuit and a program upgrade application device based on an external interface are provided.

[0005] In one embodiment of the present application, a program upgrade application circuit is provided, including: a first interface unit, a controller module, and a voltage-stabilized power supply control module.

[0006] The first interface unit is electrically connected to the controller module and the voltage-regulated power supply control module, and is used to receive an external data signal and a first input voltage, transmit the external data signal to the controller module, and transmit the first input voltage to the voltage-regulated power supply control module, wherein the first input voltage is used to control the voltage-regulated power supply control module to output a driving voltage; the controller module is electrically connected to the voltage-regulated power supply control module, the controller module receives the driving voltage, and the driving voltage is used to drive the controller module, when the controller module receives the external data signal, it outputs a power enable signal to the voltage-regulated power supply control module, and controls the first power supply unit in the voltage-regulated power supply control module to be electrically cut off, and stop providing the driving voltage; the voltage-regulated power supply control module also includes a second power supply unit, when the controller module receives the external data signal, the second power supply unit outputs the driving voltage to the controller module according to the received first input voltage; when the controller module does not receive the external data signal, the first power supply unit outputs the driving voltage to the controller module according to the received external power supply voltage.

[0007] In one embodiment of the present application, a program upgrade application device including the aforementioned program upgrade application circuit is provided.

[0008] Compared with the prior art, the program upgrade application circuit disclosed in the embodiment of the present application can directly burn or upgrade the program of the controller module in the electronic product through the first interface unit when the electronic product needs to update its function or re-burn the program, and when the controller module executes the program burning or upgrading, the terminal device provides input voltage to the voltage-stabilized power supply module, and at the same time controls the voltage-stabilized power supply control module to output a driving voltage to the controller module. When the controller module burns the program, the controller module is prevented from being damaged due to abnormal output voltage of the external power supply, and the terminal can connect to the external interface to update or burn the program without disassembling the product casing, which not only ensures the safety of the program upgrade application circuit, but also facilitates product after-sales service and reduces product after-sales costs. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0010] Figure 1 It is a program upgrade application device disclosed in the embodiment of the present application;

[0011] Figure 2 Is for Figure 1 The program upgrade application circuit block diagram in the structural diagram;

[0012] Figure 3 Is for Figure 2 A schematic diagram of a circuit of a first interface unit in the structural schematic diagram;

[0013] Figure 4 Is for Figure 2 A schematic diagram of a circuit of a second interface unit in the structural schematic diagram;

[0014] Figure 5 Is for Figure 2 The schematic diagram of the circuit of the voltage-stabilized power supply control module in the structural schematic diagram;

[0015] Figure 6 Is for Figure 2 The schematic diagram of the controller module circuit in the structural diagram;

[0016] Figure 7 Is for Figure 2 The schematic diagram of the power protection control module circuit in the structural diagram;

[0017] Figure 8 Is for Figure 2 Schematic diagram of the switch unit circuit in the structural diagram. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] See also Figure 1 , which is a schematic diagram of the structure of the program upgrade application device 10 in one embodiment of the present application, such as Figure 1 As shown, the program upgrade application device 10 includes a product 11 to be downloaded, a terminal device 12 and a burner 13. The program upgrade application device 10 is used to re-upgrade or re-burn the program of an assembled product. Furthermore, the product 11 to be downloaded includes a program upgrade application circuit 100, an external display circuit, a housing and other external devices. The program upgrade application circuit 100 is used to input the external data signal output by the terminal device into the control unit of the electronic product so that the electronic product can realize the corresponding function. The terminal device 12 is electrically connected to the product 11 to be downloaded by connecting to the burner 13. Specifically, the burner 13 is electrically connected to the external interface of the product 11 to be downloaded, and the external interface includes the product's charging interface or Micro USB2.0, Mini USB, Micro-USB 3.0, Type-C, Universal Serial Bus interface and special external interfaces with 4 pins or more.

[0020] In other embodiments of the present application, the terminal device 12 inputs the program to be downloaded into the burner 13 in advance, and the burner 13 directly inputs the program to be downloaded into the product 11 of the program to be downloaded. That is, when the product 11 of the program to be downloaded burns the program, the terminal device 12 does not need to input the program to be downloaded into the product 11 of the program to be downloaded through the burner 13. The burner 13 can input the stored program into the product 11 of the program to be downloaded in advance, which simplifies the operation steps of the burning program and improves the working efficiency of the burning program.

[0021] See also Figure 2 , which is an embodiment of the present application as Figure 1 The circuit block diagram of the program upgrade application circuit block diagram 100 is shown. Figure 2As shown, the program upgrade application circuit 100 includes: a first interface unit 101, a second interface unit 102, a voltage-stabilized power supply control module 103, a controller module 104, a power supply protection module 105, and a switch unit 106. The program upgrade application circuit 100 of this embodiment is used to upgrade or re-burn the program in the product, and the program of the control unit of the product is updated or re-burned through the first interface unit 101 without affecting the normal use of the product and without opening the assembled shell of the product.

[0022] The first interface unit 101 is electrically connected to the controller module 104 and the voltage-stabilized power supply control module 103, and is used to receive an external data signal SL and a first input voltage Vdd1, wherein the external data signal SL is transmitted to the controller module 104, and the first input voltage Vdd1 is transmitted to the voltage-stabilized power supply control module 103 and controls the voltage-stabilized power supply control module 103 to output a driving voltage Vcc. Further, the terminal device 12 ( Figure 1 ) is connected to the first interface unit 101 through the burner 13. If the product function needs to be upgraded or the program needs to be re-burned due to an abnormality, the terminal device 12 outputs the program to be downloaded to the circuit through the first interface unit 101. When burning the program, the circuit in the product is in the off state, and the voltage in the product is output by the terminal device to the first interface unit 101, providing the product with a first input voltage Vdd1 to achieve product function upgrade or complete re-burning of the program in the product.

[0023] More specifically, the output interface of the first interface unit 101 includes at least one external interface, which may be Micro USB 2.0, Mini USB, Micro-USB 3.0, Type-C, a universal serial bus interface, or a special external interface with 4 pins or more.

[0024] The external data signal SL may be a pre-set program or a specific control command signal, for example, when debugging an electronic product, a stop command, a start command, a turn command, etc. may be input through an external device.

[0025] The second interface unit 102 is electrically connected between the first interface unit 101 and the controller module 104, and is used to receive the external data signal SL and output it to the controller module 104. The second interface unit 102 is any interface on the control mainboard in the product or a specific pin connection port in the program upgrade application circuit 100. When the controller module 104 is in a power-off state, after the terminal device is electrically connected to the first interface unit 101 and the second interface unit 102, the external data signal SL is downloaded to the controller module 104 through the program download software or device to achieve program upgrade or re-burning. Specifically, all interfaces in the second interface unit 102 can be connected to interfaces in the first interface unit 101, or only the data signal interface in the second interface unit 102 can be connected to the data signal interface in the first interface unit 101.

[0026] More specifically, the second interface unit 102 includes at least one internal interface, and the internal interface can be connected to the external interface in a one-to-one relationship, or in a one-to-many or many-to-one relationship, that is, one internal interface can be connected to at least one external interface, or one external interface can be connected to at least one internal interface. The internal interface can be Micro USB2.0, Mini USB, Micro-USB 3.0, Type-C, a universal serial bus interface, and a special external interface with 4 pins or more.

[0027] The voltage-stabilized power supply control module 103 is electrically connected to the controller module 104, and is used to output a driving voltage Vcc to drive the controller module 104 to maintain normal operation. The voltage-stabilized power supply control module 103 includes a first power supply unit 1031 and a second power supply unit 1032. When the controller module 104 outputs a first-level power supply enable signal control, the first power supply unit 1031 is electrically cut off, and the second power supply unit 1032 outputs a driving voltage Vcc to the controller module 104 according to the received first input voltage Vdd1. When the controller module 104 outputs a second-level power supply enable signal control, the first power supply unit 1031 is electrically turned on to receive the external power supply voltage Vdd. At this time, the voltage-stabilized power supply control module 103 outputs the driving voltage Vcc to the controller module 104.

[0028] In this example, the first level is a low level, and the second level is a high level.

[0029] In other embodiments of the present application, the first level is a high level, and the second level is a low level.

[0030] When the product is in sleep or standby mode, the voltage-stabilized power supply control module 103 automatically cuts off the electrical connection between the power supply and the program upgrade application circuit, that is, the electrical connection between the first power supply unit 1031 and the external power supply is cut off. When the product is burning a program, the controller module 104 outputs a power enable signal EN1 to control the first power supply unit 1031 to be disconnected, and the second power supply unit 1032 ensures the operating voltage required for program burning of the controller module 104 according to the first input voltage Vdd1 input by the first interface unit 101. The power supply includes a battery, a battery pack or other external power supply.

[0031] In this embodiment, when the product is burning the program, the first power supply unit 1031 may be shut off from inputting the external power supply voltage Vdd by other means, for example, by shutting off the external power supply.

[0032] Furthermore, when the product is working normally, the input voltage of the voltage-stabilized power supply control module 103 is the external power supply voltage Vdd, and after voltage conversion, the external power supply voltage Vdd is converted into the driving voltage Vcc. When updating the program or re-burning the program, the second power supply unit 1032 in the voltage-stabilized power supply control module 103 receives the first input voltage Vdd1 and converts the first input voltage Vdd1 into the driving voltage Vcc.

[0033] The controller module 104 is electrically connected to the voltage-stabilized power supply control module 103. When the controller module 104 receives the external data signal SL, it outputs a power enable signal EN1 to control the first power supply unit 1031 in the voltage-stabilized power supply control module 103 to be electrically cut off. Specifically, the controller module 104 is a core control device for realizing product functions. When the product is in a dormant or standby state, the controller module 104 outputs a first-level power enable signal EN1 to control the first power supply unit 1031 in the voltage-stabilized power supply control module 103 to be electrically cut off, and the external power supply is electrically disconnected from the circuit. At this time, the driving voltage Vcc required by the controller module 104 is input into the first power supply unit 1031 by the terminal device through the first interface unit 101, and finally output to the controller module 104. The terminal device inputs the external data signal SL into the controller module 104 to realize program upgrade or re-burning of the program. In the assembled product, the product function upgrade or the burning of the program in the product is realized without opening the product shell.

[0034] When the product enters normal operation from a dormant or standby state, the controller module 104 outputs a second level power enable signal EN1, continuously controls the circuit of the voltage-stabilized power supply control module 103 to be turned on, and the first power supply unit 1031 is electrically connected to the external power supply. When there is no load or no current in the circuit, the controller module 104 controls the circuit of the voltage-stabilized power supply control module 103 to be turned off.

[0035] The power protection module 105 is electrically connected to the voltage-stabilized power control module 103, and is used to output a power protection enable signal DO to control the voltage-stabilized power control module 103 to be electrically cut off when the output voltage of the voltage-stabilized power control module 103 is not within a preset voltage range, and stop outputting the driving voltage Vcc to the controller module 104. When the external power supply is over-discharged, the external power supply voltage Vdd output by the external power supply is lower than the first preset voltage V1 or the current value of the power supply is lower than the first preset current I1, and the power protection module 105 outputs a power protection enable signal DO to control the voltage-stabilized power control module 103 to be turned off, so that the power supply is disconnected from the circuit in the product and stops continuous discharge, thereby improving the safety of the circuit in the product.

[0036] The magnitudes of the first preset voltage V1 and the first preset current I1 are preset according to electrical parameters of a power source.

[0037] The switch unit 106 is electrically connected to the voltage-stabilized power supply control module 103 and the controller module 104, and is used to output a switch enable signal Key to control the first power supply unit 1031 in the voltage-stabilized power supply control module 103 to be turned on when receiving an external trigger signal. When the first power supply unit 1031 is turned on, the controller module 104 outputs a power enable signal EN1 to maintain the voltage-stabilized power supply control module 103 to be continuously turned on. The switch unit 106 and the voltage-stabilized power supply control module 103 form a NOR gate circuit, and output a switch detection signal Key to the controller module 104. When the program burning is completed or the program upgrade is completed, the switch unit 106 outputs a switch enable signal Key to control the conduction of the voltage-stabilized power supply control module 103 within the power supply recovery time T1, and the program upgrade application circuit works normally within the power supply recovery time T1.

[0038] During the power restoration time T1, the controller module 104 outputs the power enable signal EN1 to control the voltage stabilized power control module 103 to be turned on. After the switch unit 106 is electrically disconnected, the controller module 104 continues to control the voltage stabilized power control module 103 to be turned on to ensure the normal operation of the circuit. The switch unit 106 includes at least one normally-off control button, and the power restoration time T1 is within the range of 0-1s.

[0039] When the product is burning or upgrading the program, the first power supply unit 1031 in the voltage-stabilized power supply control module 103 is electrically disconnected, and the terminal device 12 uses the data connection line to connect the first interface unit 101, and downloads the external data signal SL to the controller module 104 through the second interface unit 102 to achieve program upgrade or re-burning. When the product enters normal operation from a dormant or standby state, the switch unit 106 outputs a switch enable signal Key to control the voltage-stabilized power supply control module 103 to turn on within the power supply recovery time T1, so that the voltage-stabilized power supply control module 103 controls the controller module 104 to work within the power supply recovery time T1, and outputs a power enable signal EN1 to control the circuit of the voltage-stabilized power supply control module 103 to turn on.

[0040] In this embodiment, when the product is working normally, the first power supply unit 1031 receives power from the external power supply voltage Vdd. After the product is assembled, when the function in the product needs to be upgraded or the program needs to be re-burned, the second power supply unit 1032 provides a driving voltage Vcc to the controller module 104, thereby preventing the controller module 104 from being damaged by the external power supply when the program is upgraded. When the product is in sleep or standby mode, the program is upgraded or re-burned through the external interface, which greatly improves the work efficiency of after-sales service personnel, reduces product after-sales costs, and avoids economic losses in manpower and material resources.

[0041] More specifically, see Figure 3 , which is Figure 2 The first interface unit circuit diagram in the structural diagram. Figure 3 As shown, the first interface unit circuit 101 includes an external interface J1, a first connection terminal N1, a second connection terminal N2 and a third connection terminal N3.

[0042] In this embodiment, the external interface J1 includes pins 1 to 4, the external interface J1 pin 1 is used to receive the first input voltage Vdd1, the external interface J1 pin 2 is the signal pin D-, the external interface J1 pin 3 is the signal pin D+, and the external interface J1 pin 4 is the ground pin.

[0043] Specifically, the pin 1 of the external interface J1 is electrically connected to the third connection terminal N3, the pin 2 of the external interface J1 is electrically connected to the first connection terminal N1, and the pin 3 of the external interface J1 is electrically connected to the second connection terminal N2.

[0044] When burning the program, the terminal device inputs the external data signal SL into the circuit control board through the external interface J1 pin 2 and the external interface J1 pin 3, and the external interface J1 pin 1 receives the first input voltage Vdd1 to provide a driving voltage Vcc for program downloading in the circuit control board.

[0045] The external interface J1 at least includes one or more external interfaces, and the external interface J1 can be Micro USB2.0, Mini USB, Micro-USB 3.0, Type-C, a universal serial bus interface, and a special external interface with 4 pins or more.

[0046] More specifically, see Figure 4 , which is Figure 2 The second interface unit circuit diagram in the structural diagram. Figure 4 As shown, the second interface unit circuit 102 includes a second interface P3, a thirty-first resistor R31, a thirty-eighth resistor R38, a first signal terminal ICPDA and a second signal terminal ICPCK.

[0047] In this embodiment, the second interface P3 includes pins 1 to 4, pin 1 of the second interface P3 is used to receive the driving voltage Vcc, pin 2 of the second interface P3 is a signal pin D-, pin 3 of the second interface P3 is a signal pin D+, and pin 4 of the second interface P3 is a ground pin.

[0048] The thirty-first resistor R31 is electrically connected between the first connection terminal N1 and the second interface P3 pin 2, the thirty-eighth resistor R38 is electrically connected between the second connection terminal N2 and the second interface P3 pin 3, the second interface P3 pin 1 is electrically connected to the driving voltage terminal VCC, the second interface P3 pin 2 is also electrically connected to the first signal terminal ICPDA, the second interface P3 pin 3 is also electrically connected to the second signal terminal ICPCK, and the second interface P3 pin 4 is electrically connected to the first ground terminal SGND. The first ground terminal SGND is the ground terminal of the electronic components in the circuit control board.

[0049] When burning the program, the second interface P3 pin 2 is electrically connected to the external interface J1 pin 2 through the first connection terminal N1, and the second interface P3 pin 3 is electrically connected to the external interface J1 pin 3 through the second connection terminal N2. After the terminal device outputs the external data signal SL, the second interface P3 receives the external data signal SL and outputs it to the first signal terminal ICPDA and the second signal terminal ICPCK.

[0050] The second interface P3 includes at least one or more internal interfaces. The second interface P3 can be Micro USB2.0, Mini USB, Micro-USB 3.0, Type-C, a universal serial bus interface, and a special external interface with 4 pins or more.

[0051] More specifically, see Figure 5 , which is Figure 2 The schematic diagram of the circuit of the voltage-stabilized power supply control module in the structural diagram. Figure 5As shown, the voltage-stabilized power supply control module circuit 103 includes a first power supply unit 1031 , a second power supply unit 1032 , a first control module 1033 and a voltage-stabilizing module 1034 .

[0052] The first power supply unit 1031 is electrically connected to the voltage stabilizing module 1034, and is used to control the electrical connection between the power supply and the program upgrade application circuit 100. When the controller module 104 receives the external data signal SL, the first power supply unit 1031 is electrically cut off according to the received power enable signal EN1. The first power supply unit 1031 includes a 48th resistor R48, a 52nd resistor R52, a first transistor Q1, and a 7th diode D7.

[0053] Specifically, the forty-eighth resistor R48 is electrically connected between the positive power terminal B+ and the gate of the first transistor Q1, the fifty-second resistor R52 is electrically connected between the gate of the first transistor Q1 and the fourth connection terminal N4, the source of the first transistor Q1 is electrically connected to the positive power terminal B+, the drain of the first transistor Q1 is electrically connected to the anode of the seventh diode D7, and the cathode of the seventh diode D7 is electrically connected to the sixth connection terminal N6.

[0054] The power supply current is transmitted to the voltage stabilizing module 1034 through the first transistor Q1 and the seventh diode D7. The first transistor Q1 controls the conduction and cutoff between the power supply and the voltage stabilizing module 1034 by the change of its gate drive voltage. The sixth connection terminal N6 is the connection point in the voltage stabilizing module 1034. The power supply positive terminal B+ is the power supply output terminal. The first transistor Q1 can be a P-type transistor.

[0055] The second power supply unit 1032 is electrically connected to the voltage stabilizing module 1034, and is used for receiving the first input voltage Vdd1 and outputting it to the voltage stabilizing module 1034 when the controller module 104 receives the external data signal SL. The second power supply unit 1032 includes an eighth diode D8 and a third connection terminal N3, wherein the anode of the eighth diode D8 is electrically connected to the third connection terminal N3, and the cathode of the eighth diode D8 is electrically connected to the sixth connection terminal N6.

[0056] The first control module 1033 is electrically connected to the switch unit 106 ( Figure 2 ), for controlling the first power supply unit 1031 to be turned on and off. The first control module 1033 includes a sixteenth capacitor C16, a forty-seventh resistor R47, a fifty-first resistor R51, a fifth diode D5, a sixth diode D6, a nineteenth transistor Q19 and an eighteenth triode Q18.

[0057] The collector of the eighteenth transistor Q18 is electrically connected to the fourth connection terminal N4, the emitter of the eighteenth transistor Q18 is electrically connected to the fifth connection terminal N5, the base of the eighteenth transistor Q18 is electrically connected to the cathode of the sixth diode D6, further, the anode of the sixth diode D6 is electrically connected to the power enable terminal OP EN, the source of the nineteenth transistor Q19 is electrically connected to the fifth connection terminal N5, the drain of the nineteenth transistor Q19 is electrically connected to the second ground terminal GND, and the gate of the nineteenth transistor Q19 is electrically connected to the cathode of the fifth diode D5. Specifically, the fifth diode D5 and the fifty-first resistor R51 are connected in series between the gate of the nineteenth transistor Q19 and the power protection enable terminal DO EN, the forty-seventh resistor R47 is electrically connected between any point between the gate of the nineteenth transistor Q19 and the cathode of the fifth diode D5 and the power protection enable terminal DO EN, and the sixteenth capacitor C16 is electrically connected between the gate of the nineteenth transistor Q19 and any point between the cathode of the fifth diode D5 and the second ground terminal GND. The second ground terminal GND is a negative power connection terminal.

[0058] In the first control module 1033, the eighteenth transistor Q18 and the nineteenth transistor Q19 form a NAND gate circuit, that is, when the eighteenth transistor Q18 and the nineteenth transistor Q19 are turned on at the same time, the first transistor Q1 in the first power supply unit 1031 is turned on. When the product enters normal operation from a sleep or standby state, after the eighteenth transistor Q18 and the nineteenth transistor Q19 are turned on at the same time, the gate voltage of the first transistor Q1 in the first power supply unit 1031 is reduced, thereby controlling the first transistor Q1 to be turned on, and the external power supply voltage Vdd is input to the voltage stabilizing module 1034, and the pin 2 of the voltage stabilizing control unit U3 in the voltage stabilizing module 1034 generates a driving voltage Vcc. If there is a power failure or a circuit failure during the operation of the product, the control module in the circuit controls the eighteenth transistor Q18 to be turned off by controlling the power signal OP of the power enable terminal OPEN, and the battery protection control module 106 ( Figure 2 ) controls the input power protection enable signal DO of the power protection enable terminal DO EN to control the nineteenth transistor Q19 to be turned off.

[0059] In this embodiment, the eighteenth transistor Q18 can be implemented by a chip transistor DTC114EKA, and the nineteenth transistor Q19 can be an N-type transistor.

[0060] The voltage regulator module 1034 is electrically connected to the controller module 104 ( Figure 2 ), which is used to output a driving voltage Vcc to drive the controller module 104 to work. The voltage stabilizing module 1034 includes an eighteenth capacitor C18, a nineteenth capacitor C19, a twentieth capacitor C20, an eleventh resistor R11 and a voltage stabilizing control unit U3.

[0061] In this embodiment, the voltage stabilizing control unit U3 is an integrated circuit, including pins 1 to 3, and the functions are as follows: pin 1 of the voltage stabilizing control unit U3 is the ground terminal, pin 2 of the voltage stabilizing control unit U3 is the input voltage terminal, and pin 3 of the voltage stabilizing control unit U3 is the output voltage terminal.

[0062] The eighteenth capacitor C18 is electrically connected between the sixth connection terminal N6 and the first ground terminal SGND, the nineteenth capacitor C19 is electrically connected between any point between the pin 2 of the voltage stabilizing control unit U3 and the sixth connection terminal N6 and the first ground terminal SGND, the pin 2 of the voltage stabilizing control unit U3 is electrically connected to the sixth connection terminal N6, the pin 1 of the voltage stabilizing control unit U3 is electrically connected to the first ground terminal SGND, the pin 3 of the voltage stabilizing control unit U3 is electrically connected to the driving voltage terminal VCC, and the eleventh resistor R11 and the twentieth capacitor C20 are connected in series between the driving voltage terminal VCC and the first ground terminal SGND.

[0063] When the product is working normally, the input of pin 2 of the voltage stabilizing control unit U3 is the power supply voltage, and after the voltage stabilizing control unit U3 steps down the voltage, the driving voltage Vcc is output. When the program is upgraded or burned, the first transistor Q1 in the first power supply unit 1031 is turned off, and the terminal device outputs the voltage to pin 2 of the voltage stabilizing control unit U3 through the third connection terminal N3, and after the voltage stabilizing control unit U3 processes the voltage, the driving voltage of 5V is output. In this embodiment, the voltage stabilizing control unit U3 can be implemented by HT7550.

[0064] In the voltage-stabilized power supply control module circuit 103, if the program is upgraded or re-burned, the first transistor Q1 is disconnected, the electrical connection between the power supply and the circuit is disconnected, and the first input voltage Vdd1 is input to the voltage-stabilized control unit U3 pin 2 through the third connection terminal N3. When the product works normally, the eighteenth transistor Q18 and the nineteenth transistor Q19 are continuously turned on to keep the first transistor Q1 turned on.

[0065] More specifically, see Figure 6 , which is Figure 2 The controller module circuit diagram in the structural diagram. Figure 6 As shown, the controller module circuit 104 includes a micro control unit U1. The micro control unit U1 includes a battery enable terminal OP EN, a first signal terminal ICPDA, a second signal terminal ICPCK and a driving voltage terminal VCC.

[0066] When upgrading or burning a program, the micro control unit U1 receives an external data signal SL through the first signal terminal ICPDA and the second signal terminal ICPCK. When the product is working normally, the micro control unit U1 outputs a power signal OP to keep the eighteenth transistor Q18 turned on. If the product is working abnormally or the circuit is abnormal, the micro control unit U1 outputs a power signal OP to control the eighteenth transistor Q18 to turn off.

[0067] More specifically, see Figure 7 , which is Figure 2 The schematic diagram of the power protection module circuit in the structural diagram. Figure 7 As shown, the power protection module circuit 105 includes a first resistor R1, a second resistor R2, a ninth resistor R9, a third capacitor C3 and a power protection control unit U2.

[0068] In this embodiment, the power protection control unit U2 is an integrated circuit, including pins 1 to 6, and the functions are as follows: pin 1 of the power protection control unit U2 is a voltage and current output control pin, pin 2 of the power protection control unit U2 is a voltage and overcurrent detection pin, pin 3 of the power protection control unit U2 is a power charging control pin, pin 4 of the power protection control unit U2 is a time delay measurement pin, pin 5 of the power protection control unit U2 is a positive power input pin, and pin 6 of the power protection control unit U2 is a ground pin.

[0069] Specifically, the first resistor R1 is electrically connected between the positive terminal B+ of the power supply and the pin 5 of the power protection control unit U2, the third capacitor C3 and the second resistor R2 are connected in series between the pin 5 of the power protection control unit U2 and the second ground terminal GND, the ninth resistor R9 is electrically connected between the pin 2 of the power protection control unit U2 and the second ground terminal GND, the pin 1 of the power protection control unit U2 is electrically connected to the power protection enable terminal DO EN, and the pin 6 of the power protection control unit U2 is electrically connected to any point between the third capacitor C3 and the second resistor R2.

[0070] The power protection control unit U2 is used to protect the power supply in the product from over-discharge and over-current. When the power supply in the product is over-discharged or over-current occurs, the power protection control unit U2 outputs a first-level power protection enable signal to control the nineteenth transistor Q19 in the first control module 1033 to turn off. When the product is working normally, the second-level power protection enable signal is continuously output to keep the nineteenth transistor Q19 turned on. This improves the service life of the power supply and extends the power supply usage time in the product.

[0071] More specifically, see Figure 8 , which is Figure 2 The schematic diagram of the switch unit circuit in the structural diagram. Figure 8 As shown, the switch unit circuit 106 includes a forty-second resistor R42, an eighth diode D8, a ninth diode D9, a fourth capacitor C4, a first switch S1, a fourth connection terminal N4 and a fifth connection terminal N5.

[0072] The forty-second resistor R42 is electrically connected between the anode of the eighth diode D8 and the driving voltage terminal VCC, the cathode of the eighth diode D8 is electrically connected to the cathode of the ninth diode D9, the anode of the ninth diode D9 is electrically connected to the fourth connection terminal N4, the fourth capacitor C4 is electrically connected between the cathode of the ninth diode D9 and the fifth connection terminal N5, and the first switch S1 is electrically connected between any point between the cathode of the eighth diode D8 and the cathode of the ninth diode D9 and between the fifth connection terminal N5.

[0073] The switch unit circuit 106 and the first control module 1033 form a NOR gate circuit. When the product is in a dormant state and needs to work normally or after the program is burned, the first switch S1 is closed, and within the power supply recovery time T1, the first transistor Q1 in the first power supply unit 1031 is turned on, and the controller module 104 obtains the driving voltage Vcc and works normally. At the same time, the micro control unit U1 in the controller module 104 outputs a power enable signal OP to control the eighteenth transistor Q18 in the first control module 1033 to turn on. After the first switch S1 is turned off, the first transistor Q1 is kept turned on continuously to achieve the purpose of continuous power supply. The first switch S1 can be a normally open key controller, and the first switch S1 is composed of at least one or more switches.

[0074] When the microcontroller unit U1 in the controller module 104 is performing a program upgrade or program burning, the first power supply unit 1031 is disconnected from the external power supply, and the input voltage received through the first interface unit 101 is transmitted to the second power supply unit 1032. After conversion by the voltage regulator module 1034, the driving voltage is output to the controller module 104. At the same time, the first power supply unit 1031 inputs the external data signal SL to the microcontroller unit U1 in the controller module 104 through the second interface unit 102 to realize program upgrading or burning.

[0075] If the electronic product is in a dormant or standby state for a long time, the controller module 104 outputs a first level power enable signal to control the first power supply unit 1031 to be electrically disconnected, and the first power supply unit 1031 stops inputting the external power supply voltage Vdd until the switch unit 106 receives an external trigger signal and outputs a switch enable signal Key to control the first power supply unit 1031 in the voltage-stabilized power supply control module 103 to be turned on. If the external power supply is over-discharged, the power protection module 105 outputs a power protection enable signal DO to control the voltage-stabilized power supply control module 103 to be turned off, so that the power supply is disconnected from the circuit in the product and stops continuous discharge, thereby improving the safety of the circuit in the product.

[0076] The above is a detailed introduction to a program upgrade application circuit disclosed in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A program upgrade application circuit, characterized in that: include: A first interface unit, electrically connected to the controller module and the voltage-stabilized power supply control module, for receiving an external data signal and a first input voltage, transmitting the external data signal to the controller module, transmitting the first input voltage to the voltage-stabilized power supply control module, wherein the first input voltage is used to control the voltage-stabilized power supply control module to output a driving voltage, wherein the external data signal is a pre-set program or a specific control instruction signal; The controller module is electrically connected to the voltage-stabilized power supply control module, the controller module receives the driving voltage and the driving voltage is used to drive the controller module, when the controller module receives the external data signal, it outputs a power enable signal to the voltage-stabilized power supply control module, and controls the first power supply unit in the voltage-stabilized power supply control module to be electrically cut off, and stops providing the driving voltage; The voltage-stabilized power supply control module further includes a second power supply unit, and when the controller module receives the external data signal, the second power supply unit outputs the driving voltage to the controller module according to the received first input voltage; When the controller module does not receive the external data signal, the first power supply unit outputs the driving voltage to the controller module according to the received external power voltage; The program upgrade application circuit further includes a second interface unit electrically connected between the first interface unit and the controller module, and configured to receive the external data signal from the first interface unit and transmit the external data signal to the controller module; The program upgrade application circuit also includes a power protection module, which is electrically connected to the voltage-stabilized power control module and is used to output a power protection enable signal to control the voltage-stabilized power control module to stop outputting the driving voltage when the output voltage of the voltage-stabilized power control module is not within a preset voltage range; The program upgrade application circuit also includes a switch unit, which is electrically connected to the voltage-stabilized power supply control module and the controller module, and is used to output a switch enable signal to control the first power supply unit to be turned on when an external trigger signal is received. When the first power supply unit is turned on, the controller module outputs a power enable signal to maintain the voltage-stabilized power supply control module to be continuously turned on.

2. The program upgrade application circuit according to claim 1, characterized in that: When the controller module receives the external data signal, the voltage-stabilized power supply control module is electrically cut off from the external power supply, and the first interface unit controls the voltage-stabilized power supply control module to output the driving voltage based on receiving the first input voltage.

3. The program upgrade application circuit according to claim 1, characterized in that: The first interface unit includes at least one external interface, and the second interface unit includes at least one internal interface; The connection relationship between the external interface and the internal interface is a one-to-one connection; or, The connection relationship between the external interface and the internal interface is also a one-to-many or many-to-one connection.

4. The program upgrade application circuit according to claim 1, characterized in that: The voltage-stabilized power supply control module also includes a voltage-stabilizing module and a first control module; The voltage stabilizing module is electrically connected to the controller module, and is used for outputting the driving voltage to the controller module according to the received first input voltage when the first power supply unit is electrically cut off, so as to control the controller module to output the power enable signal to maintain the first control module in an electrically cut-off state; The first control module is electrically connected to the first power supply unit and the switch unit, and is used for outputting a discharge enable signal to control the first power supply unit to remain turned on after the external trigger signal disappears when the first control module is turned on.

5. The program upgrade application circuit according to claim 4, characterized in that: The voltage stabilizing module is electrically connected to the first interface unit. When receiving the external data signal, the first power supply unit is electrically disconnected and stops providing the external power supply voltage.

6. The program upgrade application circuit according to claim 4, characterized in that: The first control module and the switch unit form a NOR gate circuit, which is used to control the first power supply unit to be turned on when the controller module receives the external data signal, so as to provide the external power supply voltage to the voltage stabilizing module.

7. The program upgrade application circuit according to claim 4, characterized in that: After the controller module stops receiving the external data signal, the switch unit controls the first power supply unit to be electrically turned on within a power supply recovery time period, so as to control the external power supply voltage to be output to the voltage stabilizing module.

8. The program upgrade application circuit according to claim 7, characterized in that: During the power restoration time, the controller module outputs the power enable signal to maintain the electrical conduction of the first control module, so as to control the electrical conduction of the first power supply unit.

9. A program upgrade application device, characterized in that: Comprising the program upgrade application circuit as described in any one of claims 1-8.