CN210864695U - Firmware upgrading device suitable for power amplifier multi-microcontroller system - Google Patents

Firmware upgrading device suitable for power amplifier multi-microcontroller system Download PDF

Info

Publication number
CN210864695U
CN210864695U CN201922330418.XU CN201922330418U CN210864695U CN 210864695 U CN210864695 U CN 210864695U CN 201922330418 U CN201922330418 U CN 201922330418U CN 210864695 U CN210864695 U CN 210864695U
Authority
CN
China
Prior art keywords
microcontroller
circuit
power amplifier
uart
changes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201922330418.XU
Other languages
Chinese (zh)
Inventor
滕勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dbwave Technologies Co ltd
Original Assignee
Dbwave Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dbwave Technologies Co ltd filed Critical Dbwave Technologies Co ltd
Priority to CN201922330418.XU priority Critical patent/CN210864695U/en
Application granted granted Critical
Publication of CN210864695U publication Critical patent/CN210864695U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The utility model provides a firmware upgrading device suitable for many microcontroller systems of power amplifier, it can realize the online upgrading of a plurality of microcontroller firmware, and the circuit is simpler reliable, lower cost, very big improvement work efficiency, it includes the host computer, USB changes the RS485 circuit, first UART changes the RS485 circuit, the RS485 bus, second UART changes the RS485 circuit, microcontroller and power amplifier, the host computer is connected USB changes the RS485 circuit, USB changes the first UART of RS485 circuit connection and changes the RS485 circuit, the UART changes the RS485 circuit and passes through RS485 bus connection to second UART changes the RS485 circuit, microcontroller of every second UART changes RS485 circuit connection, every microcontroller is connected to power amplifier respectively.

Description

Firmware upgrading device suitable for power amplifier multi-microcontroller system
Technical Field
The utility model relates to the field of electronic technology, particularly, relate to a firmware upgrading device suitable for many microcontroller systems of power amplifier.
Background
Microcontrollers (hereinafter referred to as MCUs) are widely used in complex power amplifier systems because of their flexibility and reliability. At present, the on-line upgrade of the microcontroller is generally realized by a universal serial communication port UART, and the inherent characteristic of the UART can only realize the upgrade of a single MCU. However, in order to implement modular design and facilitate maintainability of modules in a power amplifier system, designers often use multiple MCUs to manage and control the branches of each module, and an important means for ensuring that the system has maintainability is that firmware (application program) of each MCU can be upgraded in the system, so that the introduction of a bus to facilitate uniform coordinated control of multiple MCUs of each module and the implementation of upgrading the firmware of multiple MCUs in a bus manner is an urgent function of a multi-microcontroller system of a power amplifier.
SUMMERY OF THE UTILITY MODEL
An object of the utility model is to provide a firmware upgrading device suitable for many microcontroller systems of power amplifier, it can realize a plurality of microcontroller firmware online upgrade to the circuit is simpler reliable, lower cost, very big improvement work efficiency.
The embodiment of the utility model is realized like this:
the utility model provides a firmware upgrading device suitable for many microcontroller systems of power amplifier, it includes the host computer, USB changes RS485 circuit, first UART changes RS485 circuit, the RS485 bus, second UART changes RS485 circuit, microcontroller and power amplifier, the host computer is connected USB changes RS485 circuit, USB changes RS485 circuit connection first UART changes RS485 circuit, UART changes RS485 circuit and passes through RS485 bus connection to second UART changes RS485 circuit, every second UART changes a microcontroller of RS485 circuit connection, every microcontroller is connected to power amplifier respectively.
In the preferred embodiment of the present invention, the power amplifier comprises a human-computer interface management module, a power management module and a gate voltage regulation module, the microcontroller comprises a first microcontroller, a second microcontroller and a third microcontroller, the human-computer interface management module is connected to the first microcontroller, the power management module is connected to the second microcontroller, the gate voltage regulation module is connected to the third microcontroller, and the first microcontroller, the second microcontroller and the third microcontroller are respectively connected to a second UART-to-RS 485 circuit.
In a preferred embodiment of the present invention, the first UART to RS485 circuit and the second UART to RS485 circuit both include an integrated circuit MAX 13487E.
In a preferred embodiment of the present invention, the USB to RS485 circuit includes an integrated circuit CH 340G.
In the preferred embodiment of the present invention, the TTL level interface of the microcontroller is connected to the RS485 bus via the TTL to RS485 interface circuit of the integrated circuit MAX 13487E.
In the preferred embodiment of the present invention, the upper computer is connected to a USB to TTL interface circuit of the integrated circuit CH 340G.
In the preferred embodiment of the present invention, the USB to TTL interface circuit is connected to the interface of the RS485 bus through the integrated circuit MAX 13487E.
The utility model also provides a firmware upgrading method suitable for many microcontroller systems of power amplifier, its microcontroller's flash memory includes guide module and application module, and guide module passes through microcontroller's SWD programming interface and microcontroller programmer and downloads to flash memory, and application module downloads to flash memory through guide module, and every microcontroller has unique address sign, and the firmware upgrading way includes following step:
the method comprises the following steps: the microcontroller is powered on and reset;
step two: judging whether the microcontroller receives an upgrading command with an address identifier;
step three: if an upgrading command is received, entering an upgrading cycle;
step four: and if the upgrading command is not received and the application module is downloaded, entering the application module for execution.
In a preferred embodiment of the present invention, the upgrading cycle includes the following steps: if the upgrading command is received, the guide module of the microcontroller operates, receives the upgrading packet, finishes upgrading and then enters the application module to execute.
In the preferred embodiment of the present invention, the above-mentioned boot module does not complete the upgrade, and then the boot module receives the upgrade package again to upgrade; if the upgrade of the guide module is overtime, the guide module operates the upgrade of the received upgrade package again.
The embodiment of the utility model provides a beneficial effect is: the on-line upgrading of the microcontroller in the prior art is realized by adopting a serial interface UART, and the upgrading efficiency of the firmware of only a single microcontroller is low, the utility model discloses adopt RS485 bus mode can realize the on-line upgrading of the firmware of a plurality of microcontrollers, greatly improve work efficiency; meanwhile, the RS485 bus is provided with receiving and transmitting control inside an integrated circuit MAX13487E, and can be directly connected with a UART (universal asynchronous receiver/transmitter) of a microcontroller without independent pins for receiving and transmitting control, so that the RS485 bus is simpler and more reliable and has lower cost compared with a MAX485 circuit used in the prior art.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram 1 of a firmware upgrading device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a firmware upgrading apparatus according to an embodiment of the present invention 2;
fig. 3 is a flowchart of a firmware upgrading method according to an embodiment of the present invention;
icon: 100-an upper computer; 200-USB to RS485 circuit; 300-a first UART to RS485 circuit; 400-RS485 bus; 500-a second UART to RS485 circuit; 600-a microcontroller; 700-a power amplifier; 710-human interface management module; 720-power management module; 730-a gate voltage regulation module; 610-a first microcontroller; 620-a second microcontroller; 630-a third microcontroller.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the accompanying drawings, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative efforts belong to the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate the position or positional relationship based on the position or positional relationship shown in the drawings, or the position or positional relationship which is usually placed when the product of the present invention is used, and are only for convenience of description and simplification of the description, but do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Furthermore, the terms "horizontal", "vertical", "overhang" and the like do not imply that the components are required to be absolutely horizontal or overhang, but may be slightly inclined. For example, "horizontal" merely means that the direction is more horizontal than "vertical" and does not mean that the structure must be perfectly horizontal, but may be slightly inclined.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases to those skilled in the art.
First embodiment
Based on power amplifier's a plurality of microcontroller's system characteristics, the utility model provides a realize power amplifier's a plurality of microcontroller's system firmware upgrading circuit and upgrading method. The microcontroller is internally provided with a 64KB RAM and a 512KB flash, the flash is divided into two parts during development, one part is a bootstrap program (Bootloader for short), the other part is an application program, and the firmware upgrading circuit and the bootstrap program can realize upgrading of system firmware/application programs of a plurality of microcontrollers of the power amplifier, so that the product has maintainability, the performance of the product is improved, and the adaptability of the product is enhanced.
Referring to fig. 1-2, the present embodiment provides a firmware upgrading apparatus suitable for a power amplifier multi-microcontroller system, which includes an upper computer 100, a USB to RS485 circuit 200, a first UART to RS485 circuit 300, an RS485 bus 400, a second UART to RS485 circuit 500, microcontrollers 600, and a power amplifier 700, wherein the upper computer 100 is connected to the USB to RS485 circuit 200, the USB to RS485 circuit 200 is connected to the first UART to RS485 circuit 300, the first UART to RS485 circuit 300 is connected to the second UART to RS485 circuit 500 through the RS485 bus 400, each second UART to RS485 circuit 500 is connected to one microcontroller 600, and each microcontroller 600 is connected to the power amplifier 700.
More specifically, the power amplifier 700 in this embodiment includes a human-machine interface management module 710, a power management module 720, and a gate voltage adjustment module 730, the microcontroller 600 includes a first microcontroller 610, a second microcontroller 620, and a third microcontroller 630, the human-machine interface management module 710 is connected to the first microcontroller 610, the power management module 720 is connected to the second microcontroller 620, the gate voltage adjustment module 730 is connected to the third microcontroller 630, and the first microcontroller 610, the second microcontroller 620, and the third microcontroller 630 are respectively connected to a second UART-to-RS 485 circuit 500.
More specifically, in the embodiment, the first UART-to-RS 485 circuit 300 and the second UART-to-RS 485 circuit 500 both include an integrated circuit MAX 13487E. The USB to RS485 circuit 200 includes an integrated circuit CH 340G. The UART-to-RS 485 circuit in the embodiment is realized by adopting an integrated circuit MAX 13487E; the USB to RS485 circuit 200 is implemented using an integrated circuit CH 340G.
More specifically, in this embodiment, the TTL level interface of the microcontroller 600 is connected to the RS485 bus 400 through a TTL to RS485 interface circuit of the integrated circuit MAX 13487E. The upper computer 100 is connected to a USB to TTL interface circuit of the integrated circuit CH 340G. The USB-to-TTL interface circuit is connected to an interface of the RS485 bus 400 through a TTL-to-RS 485 interface circuit of the integrated circuit MAX 13487E.
In the present embodiment, TTL level interfaces of the universal serial bus (UART) of the microcontrollers 600 of the plurality of microcontrollers 600 of the power amplifier 700 are connected to the RS485 bus 400 through a TTL to RS485 interface circuit of MAX13487E, and the USB of the PC is connected to the RS485 bus 400 through a USB to TTL interface circuit of CH340G and then through a TTL to RS485 interface circuit of MAX 13487E.
More specifically, in the microcontroller 600 in this embodiment, the single chip microcomputer STM32F103VET6 of the ideographic semiconductor is used, the internal flash memory is divided into a boot module and an application module, the boot module is downloaded into the flash through the SWD programming interface of the single chip microcomputer STM32F103VET6 and the STM32F103VET6 programmer (ST-LINK), and the application module is downloaded into the flash through the boot module.
The boot module and the PC-side application (i.e., the upper computer 100) are used to download the application (or called firmware) of each microcontroller 600 into the flash of each microcontroller 600. Because a plurality of microcontrollers 600 are arranged on the RS485 bus 400, the guide module distributes a unique address identifier to each microcontroller 600, the PC side application program establishes a single link with the guide module of each microcontroller 600 through the data RS485 bus 400 and the address identifier, and sends an upgrading data packet of the application program to the microcontrollers 600 to realize upgrading.
Referring to fig. 3, the embodiment further provides a firmware upgrading method for a power amplifier multi-microcontroller 600 system, where a flash memory of a microcontroller 600 includes a boot module and an application module, the boot module is downloaded to the flash memory through an SWD programming interface of the microcontroller 600 and a microcontroller 600 programmer, the application module is downloaded to the flash memory through the boot module, each microcontroller 600 has a unique address identifier, and the firmware upgrading method includes the following steps:
the method comprises the following steps: microcontroller 600 is powered on reset;
step two: judging whether the microcontroller 600 receives an upgrade command with an address identifier;
step three: if an upgrading command is received, entering an upgrading cycle;
step four: and if the upgrading command is not received and the application module is downloaded, entering the application module for execution.
More specifically, the upgrading cycle in this embodiment includes the following specific steps: if the upgrade command is received, the boot module of the microcontroller 600 operates, and the boot module receives the upgrade packet, completes the upgrade, and then enters the application module to execute. If the guide module does not finish upgrading, the guide module receives upgrading package upgrading again; if the upgrade of the guide module is overtime, the guide module operates the upgrade of the received upgrade package again.
In the present embodiment, when the microcontroller 600 is powered on and reset, the boot module is first operated, the application flag is checked, and the update instruction which is sent by the PC application and is consistent with the address identifier of the PC application on the RS485 bus 400 is received, if the update instruction exists, an update cycle is entered, and if the application is not downloaded (the application flag is 1), the application is entered for execution. During production of the product, the boot module is downloaded to each microcontroller 600 and the address identifier is set, then the application program is downloaded to each microcontroller 600, and when the application program needs to be updated due to the change of the demand of the product, the application program is updated through the upgrading bus interface.
To sum up, the utility model discloses a realize the firmware realization of RS485 bus 400 mode to power amplifier 700 adoption a plurality of microcontrollers 600(STM32F103VET6) system simultaneously, synchronous online upgrade through using MAX 13487E. By adopting the scheme, the power amplifier 700 controlled by a plurality of microcontrollers 600(STM32F103VET6) controls the application of the integrated circuit MAX13487E with a flow control mode in a system firmware upgrading interface circuit. The firmware upgrade interface circuit controlled by a plurality of microcontrollers 600(STM32F103VET6) and applied to other product control systems is applied to an integrated circuit MAX13487E with a flow control mode.
Meanwhile, the principle scheme of the present invention is not separated from the scope of the present invention, the firmware upgrade interface circuit of the power amplifier 700 control system controlled by a plurality of microcontrollers 600(STM32F103VET6) adopts the application of the integrated circuit MAX13487E with the flow control mode, and some modifications and decorations made by the circuit are also regarded as the present invention.
This description describes examples of embodiments of the invention, and is not intended to illustrate and describe all possible forms of the invention. It should be understood that the embodiments described in this specification can be implemented in many alternative forms. The figures are not necessarily to scale; some features may be exaggerated or minimized to show details of particular components. Specific structural and functional details disclosed are not to be interpreted as limiting, but merely as a representative basis for teaching one skilled in the art to variously employ the present invention. It will be appreciated by persons skilled in the art that a plurality of features illustrated and described with reference to any one of the figures may be combined with features illustrated in one or more other figures to form embodiments which are not explicitly illustrated or described. The described combination of features provides a representative embodiment for a typical application. However, various combinations and modifications of the features consistent with the teachings of the present invention may be used as desired for particular applications or implementations.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. The utility model provides a firmware upgrading device suitable for many microcontroller systems of power amplifier, a serial communication port, change RS485 circuit, first UART to RS485 circuit, RS485 bus, second UART to RS485 circuit, microcontroller and power amplifier including host computer, USB, the host computer is connected USB changes the RS485 circuit connection first UART changes the RS485 circuit, UART changes the RS485 circuit and passes through RS485 bus connection to second UART changes the RS485 circuit, every second UART changes RS485 circuit connection one microcontroller, every microcontroller is connected to respectively power amplifier.
2. The firmware upgrading device suitable for a power amplifier multi-microcontroller system of claim 1, wherein the power amplifier comprises a human-computer interface management module, a power management module and a grid voltage regulation module, the microcontroller comprises a first microcontroller, a second microcontroller and a third microcontroller, the human-computer interface management module is connected with the first microcontroller, the power management module is connected to the second microcontroller, the grid voltage regulation module is connected to the third microcontroller, and the first microcontroller, the second microcontroller and the third microcontroller are respectively connected with one second UART-to-RS 485 circuit.
3. The firmware upgrading device applicable to the power amplifier multi-microcontroller system of claim 1, wherein the first UART-to-RS 485 circuit and the second UART-to-RS 485 circuit both comprise an integrated circuit MAX 13487E.
4. The firmware upgrading device suitable for the power amplifier multi-microcontroller system of claim 1, wherein the USB to RS485 circuit comprises an integrated circuit CH 340G.
5. The firmware upgrading device applicable to the power amplifier multi-microcontroller system of claim 3, wherein the TTL level interface of the microcontroller is connected to the RS485 bus through a TTL to RS485 interface circuit of the integrated circuit MAX 13487E.
6. The firmware upgrading device applicable to the power amplifier multi-microcontroller system of claim 4, wherein the upper computer is connected to a USB-to-TTL interface circuit of the integrated circuit CH 340G.
7. The firmware upgrading device applicable to the power amplifier multi-microcontroller system of claim 3, wherein the USB to TTL interface circuit is connected to the interface of the RS485 bus through a TTL to RS485 interface circuit of the integrated circuit MAX 13487E.
CN201922330418.XU 2019-12-23 2019-12-23 Firmware upgrading device suitable for power amplifier multi-microcontroller system Active CN210864695U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201922330418.XU CN210864695U (en) 2019-12-23 2019-12-23 Firmware upgrading device suitable for power amplifier multi-microcontroller system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201922330418.XU CN210864695U (en) 2019-12-23 2019-12-23 Firmware upgrading device suitable for power amplifier multi-microcontroller system

Publications (1)

Publication Number Publication Date
CN210864695U true CN210864695U (en) 2020-06-26

Family

ID=71289367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201922330418.XU Active CN210864695U (en) 2019-12-23 2019-12-23 Firmware upgrading device suitable for power amplifier multi-microcontroller system

Country Status (1)

Country Link
CN (1) CN210864695U (en)

Similar Documents

Publication Publication Date Title
CN103777972B (en) System, configuration method based on field programmable gate array and upgrade method
CN103207797A (en) Capsule type customized updating method based on universal extensible firmware interface firmware system
CN105279127A (en) FPGA program downloading system based on PCI or PCIe bus, and method
CN103678187A (en) Micro-control unit and control method thereof
CN104102510A (en) Integration and configuration system for IEC (international electrotechnical commission) 61850 network processor chips
CN106452835B (en) The method and device thereof that the terminal software of particular hardware configuration updates
CN105204871A (en) Plug-in type development method and device
CN109032623A (en) A kind of initial method and BIOS mirror image of BIOS mirror image
CN103677943A (en) Upgrading method of control software of sewing machine
CN101387993B (en) Method and system for dynamically collocating resource for equipment in computer system
CN103853557A (en) Method for starting WinCE by utilizing Uboot network
CN210864695U (en) Firmware upgrading device suitable for power amplifier multi-microcontroller system
CN110096291A (en) Power management chip upgrades circuit, method and the network equipment
CN110515635A (en) Mainboard VR firmware upgrade method, device, server and readable storage medium storing program for executing
EP3539004B1 (en) Mobile device external controller module
CN101788946B (en) Method and device for sintering firmware connected with E2PROM (Electrically Erasable Programmable Read-Only Memory) on CPLD (Complex Programable Logic Device)
CN113656076A (en) BIOS starting method and device based on hardware multiplexing channel
CN111078594A (en) Firmware upgrading device and method suitable for power amplifier multi-microcontroller system
CN108932134A (en) Server B IOS method for remote updating
CN115344292B (en) Firmware automatic upgrading method and device, electronic equipment and readable storage medium
CN110262349A (en) A kind of the remote online programmed method and system of C8051F series monolithic
CN110908690A (en) CAN bus-based online upgrading method for multiple BMU application programs
CN2935648Y (en) Mainboard of firewall
CN113608752A (en) Method, system and device for installing intelligent network card system and readable storage medium
CN106445599A (en) Application program upgrading method and upgrading device and terminal

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant