Program upgrading application circuit and program upgrading application device

文档序号:7197 发布日期:2021-09-17 浏览:47次 中文

1. A program upgrade application circuit, comprising:

the first interface unit is electrically connected to the controller module and the regulated power supply control module, and is used for receiving an external data signal and a first input voltage, transmitting the external data signal to the controller module, and transmitting the first input voltage to the regulated power supply control module, wherein the first input voltage is used for controlling the regulated power supply control module to output a driving voltage;

the controller module is electrically connected with the regulated power supply control module, receives the driving voltage, and the driving voltage is used for driving the controller module;

the voltage-stabilized power supply control module further comprises 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 supply voltage.

2. The program upgrade application circuit of claim 1, further comprising:

the second interface unit is electrically connected between the first interface unit and the controller module and used for receiving the external data signal from the first interface unit and transmitting the external data signal to the controller module;

the power supply protection module is electrically connected to the stabilized voltage supply control module and used for outputting a power supply protection enabling signal to control the stabilized voltage supply control module to stop outputting the driving voltage when the output voltage of the stabilized voltage supply control module is not within a preset voltage range;

and the switch unit is electrically connected with the stabilized voltage power supply control module and the controller module and is used for outputting a switch enabling signal to control the conduction of the first power supply unit when receiving an external trigger signal, and when the first power supply unit is conducted, the controller module outputs a power supply enabling signal to maintain the continuous conduction of the stabilized voltage power supply control module.

3. The program-upgrade application circuit of claim 2, wherein when the controller module receives the external data signal, the voltage-stabilized power supply control module is electrically disconnected from an external power supply, and the first interface unit controls the voltage-stabilized power supply control module to output the driving voltage according to receiving the first input voltage.

4. The program-upgrade application circuit of claim 2, wherein the first interface unit comprises at least one external interface, and the second interface unit comprises at least one internal interface;

the external interface and the internal interface are connected in a one-to-one manner; alternatively, the first and second electrodes may be,

the connection relationship between the external interface and the internal interface is one-to-many or many-to-one connection.

5. The program upgrading application circuit of claim 1, wherein the regulated power supply control module further comprises a regulated power supply module and a first control module;

the voltage stabilizing module is electrically connected with the controller module and is used for outputting the driving voltage to drive 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 supply enabling 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 enabling signal to control the first power supply unit to maintain conduction after the external trigger signal disappears when the first control module is conducted.

6. The program-upgrade application circuit of claim 5, wherein the voltage-stabilizing module is electrically connected to the first interface unit, and the first power supply unit is electrically disconnected from supplying the external power voltage when receiving the external data signal.

7. The program upgrading application circuit of claim 5, wherein the first control module and the switch unit form an nor gate circuit, and the nor gate circuit is configured to control the first power supply unit to be turned on to supply the external power voltage to the voltage stabilizing module when the controller module receives the external data signal.

8. The program upgrading application circuit of claim 1, wherein after the controller module stops receiving the external data signal, the switch unit controls the first power supply unit to be electrically connected during a power restoration period to control the external power voltage to be output to the voltage stabilizing module.

9. The program upgrade application circuit of claim 8, wherein during the power restoration time, the controller module outputs the power enable signal to maintain the first control module electrically conducted to control the first power supply unit to be electrically conducted.

10. A program upgrade application apparatus comprising program upgrade application circuitry as claimed in any one of claims 1 to 9.

Background

With the continuous development of science and technology and the progress of times, various electronic products are widely applied to various industries of society, and various functions in the electronic products are continuously updated and upgraded to meet the use requirements. In various electronic products, most of them use a programmable control Unit (MCU) to control the product to implement corresponding functions.

At present, when the electronic products are not assembled, the control units in various electronic products on the market upgrade or burn programs in the control units, and then the electronic products are assembled. When functions in the electronic product need to be updated or the program is abnormal and the program needs to be updated or the program needs to be burned again, the shell of the electronic product needs to be disassembled, and then the control unit on the control panel is accessed to update the program or the program, so that the after-sales service working efficiency is reduced, the after-sales service cost of the product is improved, and the economic loss of manpower and material resources is caused.

Disclosure of Invention

In order to solve the foregoing problems, an external interface based program upgrade application circuit and a program upgrade application apparatus are provided.

An embodiment of the present application provides a program upgrade application circuit, including: the device comprises a first interface unit, a controller module and a stabilized voltage supply control module.

The first interface unit is electrically connected to the controller module and the regulated power supply control module, and is used for receiving an external data signal and a first input voltage, transmitting the external data signal to the controller module, and transmitting the first input voltage to the regulated power supply control module, wherein the first input voltage is used for controlling the regulated power supply control module to output a driving voltage; the controller module is electrically connected with the regulated power supply control module, receives the driving voltage, and the driving voltage is used for driving the controller module; the voltage-stabilized power supply control module further comprises 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 supply voltage.

In an embodiment of the present application, a program upgrading application device including the aforementioned program upgrading application circuit is provided.

Compared with the prior art, the program upgrading application circuit disclosed in the embodiment of the application directly performs program burning or upgrading on the controller module in the electronic product through the first interface unit when the electronic product needs to update functions or needs to burn programs again, and when the controller module executes program burning or upgrading, the terminal device provides input voltage to the stabilized voltage supply module and controls the stabilized voltage supply control module to output driving voltage to the controller module.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.

Fig. 1 is a program upgrade application apparatus disclosed in an embodiment of the present application;

FIG. 2 is a block diagram of a program upgrade application circuit in the schematic diagram of FIG. 1;

FIG. 3 is a circuit diagram of a first interface unit in the structure diagram of FIG. 2;

FIG. 4 is a circuit diagram of a second interface unit shown in the structural diagram of FIG. 2;

FIG. 5 is a circuit diagram of a regulated power supply control module of the schematic configuration of FIG. 2;

FIG. 6 is a schematic circuit diagram of a controller module shown in the schematic structure of FIG. 2;

FIG. 7 is a circuit diagram of the power protection control module shown in the schematic diagram of FIG. 2;

fig. 8 is a circuit diagram of the switch unit in the structural diagram of fig. 2.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

Referring to fig. 1, which is a schematic structural diagram of a program upgrading application apparatus 10 according to an embodiment of the present application, as shown in fig. 1, the program upgrading application apparatus 10 includes a product 11 to be downloaded with a program, a terminal device 12, and a burner 13. The program upgrading application device 10 is applied to a re-upgrading program or a re-burning program of an assembled product. Further, the product 11 to be downloaded with the program includes a program upgrading application circuit 100, an external display circuit, a housing, and other external devices, where the program upgrading application circuit 100 is configured to input an external data signal output by the terminal device to a control unit of the electronic product, so that the electronic product realizes a corresponding function. The terminal device 12 is electrically connected with the product 11 of the program to be downloaded through the connection burner 13, specifically, the burner 13 is electrically connected with an external interface of the product 11 of the program to be downloaded, and the external interface includes a charging interface of the product or a Micro USB2.0, a Mini USB, a Micro-USB 3.0, a Type-C, a universal serial bus interface and a special external interface with 4 pins or more.

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 is burned, the terminal device 12 is not required to input the program to be downloaded into the product 11 of the program to be downloaded through the burner 13, and the burner 13 can input the stored program into the product 11 of the program to be downloaded in advance, so that the operation steps of burning the program are simplified, and the working efficiency of burning the program is improved.

Please refer to fig. 2, which is a circuit block diagram of the application program upgrading circuit block diagram 100 shown in fig. 1 according to an embodiment of the present application. As shown in fig. 2, the program upgrade application circuit 100 includes: a first interface unit 101, a second interface unit 102, a regulated power supply control module 103, a controller module 104, a power protection module 105, and a switch unit 106. The program upgrading application circuit 100 of the embodiment is applied to upgrading or burning a program in a product, and the program updating or burning of a control unit of the product is realized through the first interface unit 101 under the condition that the normal use of the product is not influenced and a shell of the product is assembled.

The first interface unit 101 is electrically connected to the controller module 104 and the regulated power supply control module 103, and is configured to receive an external data signal SL and a first input voltage Vdd1, where the external data signal SL is transmitted to the controller module 104, and the first input voltage Vdd1 is transmitted to the regulated power supply control module 103 and controls the regulated power supply control module 103 to output a driving voltage Vcc. Further, a terminal device 12 (fig. 1) for burning the program is connected to the first interface unit 101 through a burner 13, if the function of the product needs to be upgraded or the program is abnormal and needs to be burned again, the terminal device 12 outputs the program to be downloaded to the circuit through the first interface unit 101, when the program is burned, the circuit in the product is in an off state, the voltage in the product is output to the first interface unit 101 from the terminal device, and a first input voltage Vdd1 is provided for the product to upgrade the function of the product or complete the program re-burning in the product.

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

The external data signal SL may be a preset program or a specific control command signal, and for example, a stop command, a start command, a turn command, and the like are input through an external device during debugging of an electronic product.

The second interface unit 102 is electrically connected between the first interface unit 101 and the controller module 104, and is configured to receive an external data signal SL and output the external data signal SL to the controller module 104. The second interface unit 102 is any one of interfaces on a control motherboard in a product or a specific pin connection port in the program upgrading application circuit 100, and when the controller module 104 is in a power-off state, after the terminal device is electrically connected with the first interface unit 101 and the second interface unit 102, the external data signal SL is downloaded to the controller module 104 through program downloading software or equipment, so that program upgrading or re-burning is realized. Specifically, all interfaces in the second interface unit 102 may be connected to interfaces in the first interface unit 101, or only the data signal interfaces in the second interface unit 102 may be connected to the data signal interfaces in the first interface unit 101.

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

The voltage-stabilized power supply control module 103 is electrically connected to the controller module 104, and is configured to output a driving voltage Vcc to drive the controller module 104 to keep working normally. The regulated 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 the first level power supply enable signal for control, the first power supply unit 1031 is electrically turned off, the second power supply unit 1032 outputs the driving voltage Vcc to the controller module 104 according to the received first input voltage Vdd1, when the controller module 104 outputs the second level power supply enable signal for control, the first power supply unit 1031 is electrically turned on to receive the external power supply voltage Vdd, and at this time, the regulated power supply control module 103 outputs the driving voltage Vcc to the controller module 104.

In this embodiment, the first level is a low level, and the second level is a high level.

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

When the product is in a sleep or standby state, the regulated power supply control module 103 automatically turns off the electrical connection between the power supply and the program upgrading application circuit, that is, the electrical connection between the first power supply unit 1031 and the external power supply is cut off. During the program recording of the product, the controller module 104 outputs a power enable signal EN1 to control the first power supply unit 1031 to turn off, and the second power supply unit 1032 guarantees the working voltage required by the program recording of the controller module 104 according to the first input voltage Vdd1 received from the first interface unit 101, where the power supply includes a battery, a battery pack, or other external power supply.

In this embodiment, during the product burning program, the first power supply unit 1031 may also be turned off to input the external power voltage Vdd by other methods, for example, by turning off the external power.

Further, when the product normally works, the input voltage of the regulated 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 the program is updated or re-programmed, the second power supply unit 1032 of the regulated power supply control module 103 receives the first input voltage Vdd1 and converts the first input voltage Vdd1 into the driving voltage Vcc.

The controller module 104 is electrically connected to the regulated power supply control module 103, and when the controller module 104 receives the external data signal SL, outputs a power enable signal EN1 to control the electrical cutoff of the first power supply unit 1031 in the regulated power supply control module 103. Specifically, the controller module 104 is a core control device for implementing functions of a product, and when the product is in a sleep 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 regulated power supply control module 103 to be electrically turned 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 is finally output into the controller module 104. The terminal device inputs the external data signal SL into the controller module 104 to implement the program upgrade or the re-burning program. And in the assembled product, the function upgrade of the product or the burning of the program in the product is realized under the condition of not opening the shell of the product.

When the product enters normal operation from a sleep or standby state, the controller module 104 outputs a second level power enable signal EN1 to continuously control the conduction of the regulated power supply control module 103, and the first power supply unit 1031 is electrically conducted with an external power supply. When no load or no current exists in the circuit, the controller module 104 controls the stabilized voltage power supply control module 103 to turn off the circuit.

The power protection module 105 is electrically connected to the regulated power supply control module 103, and configured to output the power protection enable signal DO to control the regulated power supply control module 103 to electrically stop when the output voltage of the regulated power supply control module 103 is not within the preset voltage range, and stop outputting the driving voltage Vcc to the controller module 104. When the external power supply is over-discharged, the voltage Vdd of the external power supply 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 the power protection enable signal DO to control the stabilized voltage supply control module 103 to be turned off, so that the power supply is disconnected from the circuit in the product to stop continuous discharge, and the safety of the circuit in the product is improved.

The magnitude of the first preset voltage V1 and the magnitude of the first preset current I1 are preset according to electrical parameters of the power supply.

The switch unit 106 is electrically connected to the regulated power supply control module 103 and the controller module 104, and configured to output a switch enable signal Key to control a first power supply unit 1031 in the regulated power supply control module 103 to be turned on when receiving an external trigger signal, and when the first power supply unit 1031 is turned on, the controller module 104 outputs a power supply enable signal EN1 to maintain the regulated power supply control module 103 to be continuously turned on. The switch unit 106 and the regulated 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 or the program upgrading is completed, the switch enabling signal Key is output through the switch unit 106 to control the conduction of the regulated power supply control module 103 within the power supply restoration time T1, and the program upgrading application circuit normally works within the power supply restoration time T1.

Within the power supply recovery time T1, the controller module 104 outputs a power enable signal EN1 to control the conduction of the regulated power supply control module 103, and after the switch unit 106 is electrically disconnected, the controller module 104 continuously controls the conduction of the regulated power supply control module 103 to ensure the normal operation of the circuit. The switch unit 106 comprises at least one normally-off control key, and the power supply recovery time T1 is within the range of 0-1 s.

When a program is recorded or updated in a product, the first power supply unit 1031 in the regulated power supply control module 103 is electrically disconnected, the terminal device 12 is connected to the first interface unit 101 by using the data connection line, and the external data signal SL is downloaded to the controller module 104 through the second interface unit 102, so that the program is updated or recorded again. When the product enters normal operation from a sleep or standby state, the switch unit 106 outputs the switch enable signal Key to control the conduction of the regulated power supply control module 103 within the power restoration time T1, so that the regulated power supply control module 103 controls the controller module 104 to operate within the power restoration time T1, and outputs the power supply enable signal EN1 to control the circuit conduction of the regulated power supply control module 103.

In this embodiment, when the product normally works, the first power supply unit 1031 receives power from the external power supply voltage Vdd, and when the product is assembled and the functions in the product need to be upgraded or the program needs to be re-programmed, the driving voltage Vcc provided by the second power supply unit 1032 is supplied to the controller module 104, so as to prevent the controller module 104 from being damaged by the external power supply when the program of the controller module 104 is upgraded. Under the dormant or standby state of the product, the program is upgraded or re-burned through the external interface, so that the working efficiency of after-sale service personnel is greatly improved, the after-sale cost of the product is reduced, and the economic loss of manpower and material resources is avoided.

More specifically, please refer to fig. 3, which is a circuit diagram of the first interface unit in the structural diagram of fig. 2. As shown in fig. 3, 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.

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 a signal pin D-, the external interface J1 pin 3 is a signal pin D +, and the external interface J1 pin 4 is a ground pin.

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

During the recording process, 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 the driving voltage Vcc for the program downloading in the circuit control board.

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

More specifically, please refer to fig. 4, which is a circuit diagram of the second interface unit in the structural diagram of fig. 2. As shown in fig. 4, 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 icdpa, and a second signal terminal ICPCK.

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

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 icdpa, 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 a ground terminal of an electronic component in the circuit control board.

During the recording process, pin 2 of the second interface P3 is electrically connected to pin 2 of the external interface J1 through the first connection terminal N1, pin 3 of the second interface P3 is electrically connected to pin 3 of the external interface J1 through the second connection terminal N2, and after the terminal device outputs the external data signal SL, the second interface P3 receives the external data signal SL and outputs the external data signal SL to the first signal terminal icdpa and the second signal terminal ICPCK.

The second interface P3 at least includes one or more internal interfaces, and the second interface P3 may be Micro USB2.0, Mini USB, Micro-USB 3.0, Type-C, USB interface, and 4-pin or more special external interface.

More specifically, please refer to fig. 5, which is a circuit diagram of the regulated power supply control module in the structural diagram of fig. 2. As shown in fig. 5, the regulated 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 regulated power module 1034.

The first power supply unit 1031 is electrically connected to the voltage regulator module 1034 for controlling the electrical connection between the power supply and the program upgrading application circuit 100, and when the controller module 104 receives the external data signal SL, the first power supply unit 1031 is electrically turned off according to the received power supply enable signal EN 1. The first power supply unit 1031 includes a forty-eighth resistor R48, a fifty-second resistor R52, a first transistor Q1, and a seventh diode D7.

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.

The power current is transmitted to the voltage regulator module 1034 through the first transistor Q1 and the seventh diode D7, the first transistor Q1 controls the on/off between the power supply and the voltage regulator module 1034 through the variation of the gate driving voltage thereof, the sixth connection terminal N6 is a connection point in the voltage regulator module 1034, the positive terminal B + of the power supply is a power output terminal, and the first transistor Q1 may be a P-type transistor.

The second power supply unit 1032 is electrically connected to the voltage regulator module 1034, and is configured to receive the first input voltage Vdd1 and output the first input voltage Vdd1 to the voltage regulator 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, an anode of the eighth diode D8 is electrically connected to the third connection terminal N3, and a cathode of the eighth diode D8 is electrically connected to the sixth connection terminal N6.

The first control module 1033 is electrically connected to the switch unit 106 (fig. 2) for controlling the first power supply unit 1031 to turn 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.

A collector of the eighteenth triode Q18 is electrically connected to the fourth connection terminal N4, an emitter of the eighteenth triode Q18 is electrically connected to the fifth connection terminal N5, a base of the eighteenth triode Q18 is electrically connected to a cathode of the sixth diode D6, further, an anode of the sixth diode D6 is electrically connected to the power enable terminal OP EN, a source of the nineteenth transistor Q19 is electrically connected to the fifth connection terminal N5, a drain of the nineteenth transistor Q19 is electrically connected to the second ground terminal GND, a gate of the nineteenth transistor Q19 is electrically connected to a 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 to 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 nineteenth transistor Q19 and the cathode of the nineteenth transistor D5 And between the second ground GND. And the second grounding end GND is a power supply negative electrode connecting end.

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 simultaneously, 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 triode Q18 and the nineteenth transistor Q19 are turned on simultaneously, the gate voltage of the first transistor Q1 in the first power supply unit 1031 is reduced, so as to control the first transistor Q1 to be turned on, the external power supply voltage Vdd is input into the voltage stabilizing module 1034, and the pin 2 of the voltage stabilizing control unit U3 in the voltage stabilizing module 1034 generates the driving voltage Vcc. If the power supply or the circuit has a fault during the operation of the product, the control module in the circuit controls the eighteenth triode Q18 to be cut off by controlling the power supply signal OP of the power supply enabling end OP EN, and the battery protection control module 106 (shown in fig. 2) controls the input power supply protection enabling signal DO of the power supply protection enabling end DO EN to control the nineteenth transistor Q19 to be cut off.

In this embodiment, the eighteenth transistor Q18 may be implemented by a patch transistor DTC114EKA, and the nineteenth transistor Q19 may be an N-type transistor.

The voltage regulator module 1034 is electrically connected to the controller module 104 (fig. 2) and configured to output the driving voltage Vcc to drive the controller module 104 to operate. The voltage regulation module 1034 includes an eighteenth capacitor C18, a nineteenth capacitor C19, a twentieth capacitor C20, an eleventh resistor R11, and a voltage regulation control unit U3.

In this embodiment, the voltage regulation control unit U3 is an integrated circuit, and includes pins 1 to 3, and the functions are: pin 1 of the voltage regulation control unit U3 is a ground terminal, pin 2 of the voltage regulation control unit U3 is an input voltage terminal, and pin 3 of the voltage regulation control unit U3 is an output voltage terminal.

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 regulation control unit U3 and the sixth connection terminal N6 and the first ground terminal SGND, the pin 2 of the voltage regulation control unit U3 is electrically connected to the sixth connection terminal N6, the pin 1 of the voltage regulation control unit U3 is electrically connected to the first ground terminal SGND, the pin 3 of the voltage regulation 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.

When the product normally works, the pin 2 of the voltage regulation control unit U3 is input as power supply voltage, and the driving voltage Vcc is output after the voltage reduction processing of the voltage regulation control unit U3. When the program is upgraded or burned, the first transistor Q1 in the first power supply unit 1031 is turned off, the terminal device outputs a voltage to the pin 2 of the voltage regulation control unit U3 through the third connection terminal N3, and outputs a 5V driving voltage after being processed by the voltage regulation control unit U3. In this embodiment, the voltage regulation control unit U3 may be implemented by using HT 7550.

In the regulated power supply control module circuit 103, if the program is upgraded or re-programmed, the first transistor Q1 is turned off, the electrical connection between the power supply and the circuit is broken, and the first input voltage Vdd1 is input to the pin 2 of the regulated control unit U3 through the third connection terminal N3. When the product normally works, the eighteenth triode Q18 and the nineteenth transistor Q19 are continuously conducted, and the first transistor Q1 is kept conducted.

More specifically, please refer to fig. 6, which is a circuit diagram of the controller module in the structural diagram of fig. 2. As shown in fig. 6, 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 icdpa, a second signal terminal ICPCK, and a driving voltage terminal VCC.

When upgrading the program or recording the program, the mcu U1 receives the external data signal SL via the first signal ICPDA and the second signal ICPCK. When the product normally works, the micro control unit U1 outputs a power signal OP to maintain the conduction of the eighteenth triode Q18, and if the product works abnormally or the circuit is abnormal, the micro control unit U1 outputs the power signal OP to control the turn-off of the eighteenth triode Q18.

More specifically, please refer to fig. 7, which is a circuit diagram of the power protection module in the structural diagram of fig. 2. As shown in fig. 7, 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.

In this embodiment, the power protection control unit U2 is an integrated circuit, and includes pins 1-6, and functions of: 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.

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 GND, the ninth resistor R9 is electrically connected between the pin 2 of the power protection control unit U2 and the second ground 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.

The power protection control unit U2 is used to protect against power over-discharge and over-current in the product. When the power supply in the product is over-discharged or over-current, 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, and when the product works normally, continuously outputs a second level power protection enable signal to maintain the nineteenth transistor Q19 to turn on. The service life of the power supply is prolonged, and the service life of the power supply in the product is prolonged.

More specifically, please refer to fig. 8, which is a circuit diagram of the switch unit in the structural diagram of fig. 2. As shown in fig. 8, 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.

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 the fifth connection terminal N5.

The switch unit circuit 106 and the first control module 1033 form an nor gate circuit, when the product is in a sleep state and needs to work normally or after a program is recorded, the first transistor Q1 in the first power supply unit 1031 is turned on by closing the first switch S1 within a power restoration time T1, the controller module 104 works normally by obtaining a driving voltage Vcc, meanwhile, the micro control unit U1 in the controller module 104 outputs a power enable signal OP to control the conduction of the eighteenth triode Q18 in the first control module 1033, and after the first switch S1 is turned off, the first transistor Q1 is kept on continuously, so that the purpose of continuous power supply is achieved. 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.

When the micro control unit U1 in the controller module 104 performs program upgrading or program burning, the first power supply unit 1031 is disconnected from the external power supply, the input voltage received through the first interface unit 101 is transmitted to the second power supply unit 1032, the driving voltage is output to the controller module 104 after being converted by the voltage stabilizing module 1034, and meanwhile, the first power supply unit 1031 inputs the external data signal SL to the micro control unit U1 in the controller module 104 through the second interface unit 102, thereby realizing the program upgrading or program burning.

If the electronic product is in a sleep 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, the first power supply unit 1031 stops inputting the external power voltage Vdd, and until the switch unit 106 receives an external trigger signal, the output switch enable signal Key controls the first power supply unit 1031 in the regulated 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 stabilized voltage power supply control module 103 to be turned off, so that the power supply is disconnected from the circuit in the product to stop continuous discharge, and the safety of the circuit in the product is improved.

The above detailed description is provided for a program upgrade application circuit disclosed in the embodiments of the present application, and specific examples are applied herein to explain the principles and implementations of the present application, and the above description of the embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:ECU数据存储方法及ECU

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!