Circuit capable of upgrading multi-channel chip firmware

By designing a multi-chip firmware upgrade circuit and utilizing the communication between the upgrade chip and the main control chip, the problems of complex circuits and high disassembly risks in the existing technology are solved, realizing convenient and safe multi-chip firmware upgrade.

CN224163953UActive Publication Date: 2026-04-24QINGDAO INFINITY PRECISION MACHINE
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
QINGDAO INFINITY PRECISION MACHINE
Filing Date
2025-04-16
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Existing technologies for multi-chip firmware upgrades suffer from problems such as complex circuitry, low integration, complex upgrade logic, and high risk of damage due to frequent disassembly of the microcontroller.

Method used

A circuit capable of multi-channel chip firmware upgrades was designed. By communicating between the upgrade chip and the main control chip, the ICSP firmware upgrade method was used to simplify the upgrade process. Furthermore, encryption was performed through the RA0 and RA1 pins to reduce the risk of disassembly.

Benefits of technology

It enables convenient firmware updates for various microcontroller models, reduces the risk of damage, simplifies the upgrade process, improves the maintenance convenience of multi-microcontroller systems, and has encryption protection functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224163953U_ABST
    Figure CN224163953U_ABST
Patent Text Reader

Abstract

The utility model discloses a circuit capable of upgrading multi-channel chip firmware, which belongs to the field of chip firmware upgrading, can carry out firmware updating on microcontrollers of various models, avoids frequent disassembly of the microcontrollers through communication between chips, and reduces the risk of damage. The circuit mainly comprises an upgrade chip U34, an RC1 pin of the upgrade chip U34 is connected with a port pin of a main control chip U31 through a resistor R566, an RC0 pin of the upgrade chip U34 is connected with a port pin of a main control chip U23 through a resistor R567, the RC1 pin of the upgrade chip U34 is further connected with a pull-down resistor R572, the RC0 pin of the upgrade chip U34 is further connected with a pull-down resistor R573, and the pull-down resistor R573 is connected with a pull-down switch. The RC3 pin of the upgrade chip U34 is connected with the first filter, the pull-up resistor R558 and the tms pin of the main control chip U31. The multi-channel chip firmware upgrading device is mainly used for upgrading multi-channel chip firmware.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of chip firmware upgrade, and more specifically, to a circuit capable of multi-channel chip firmware upgrade. Background Technology

[0002] Traditional methods for downloading microcontroller programs mainly include the following: ICSP download, which refers to downloading and updating programs without removing the microcontroller from the circuit board. ICSP utilizes the microcontroller's internal bootloader program, which is pre-installed at the factory and cannot be modified or erased; JTAG / SWD is another common microcontroller program download method, typically used in the debugging and development phases. It allows the program to be downloaded to the microcontroller using a debugger (such as ST-LINK, J-LINK, etc.) for real-time debugging and monitoring; and serial port download, which typically uses the microcontroller's built-in UART (Universal Asynchronous Receiver / Transmitter) interface. Serial port download offers advantages such as... The advantage is its simplicity and ease of use, requiring no additional hardware support; a single serial cable is all that's needed to connect the computer and the microcontroller for program downloading. However, serial download speeds are relatively slow, and for some microcontrollers without a built-in UART interface, additional hardware design may be required. For example, the chip firmware upgrade control circuit with publication number CN116226002A transmits address codes to a multiplexer, which then selects the transmission channel for upgrade / downgrade. While this achieves multi-chip upgrades, its circuitry is complex, has low integration, and its upgrade logic is relatively intricate. Utility Model Content

[0003] The purpose of this invention is to provide a circuit capable of multi-channel chip firmware upgrades, which can update the firmware of various types of microcontrollers. Through chip-to-chip communication, it avoids frequent disassembly of microcontrollers, reducing the risk of damage; it also reduces the difficulty of firmware upgrades for microcontrollers and makes it easier for staff to upgrade and maintain multi-microcontroller control systems.

[0004] This utility model is achieved through the following technical solution:

[0005] A circuit for multi-channel chip firmware upgrades includes an upgrade chip U34. The RC1 pin of the upgrade chip U34 is connected to the porst pin of the main control chip U31 via resistor R566. The RC0 pin of the upgrade chip U34 is connected to the porst pin of the main control chip U23 via resistor R567. The RC1 pin of the upgrade chip U34 is also connected to a pull-down resistor R572. The RC0 pin of the upgrade chip U34 is also connected to a pull-down resistor R573. The RC3 pin of the upgrade chip U34 is connected to filter one, pull-up resistor R558, and the tms pin of the main control chip U31. The RC4 pin of the upgrade chip U34 is connected to pull-down resistor R570 and the tck pin of the main control chip U31. The RA4 pin of the upgrade chip U34 is connected to pull-up resistor R561, filter two, and the tms pin of the main control chip U23. The RA5 pin of the upgrade chip U34 is connected to pull-down resistor R568 and the tck pin of the main control chip U23.

[0006] Furthermore, the RC5 pin of the upgrade chip U34 is connected to the reset pin of the power supply chip U33 and the pull-up resistor R557, respectively.

[0007] Furthermore, the RA1 pin of the upgrade chip U34 is connected to pin 5 of connector J3 via pull-up resistor R559, and the RA0 pin of the upgrade chip U34 is connected to pin 4 of connector J3 via pull-up resistor R560.

[0008] Furthermore, the filter includes a resistor R571 and a capacitor C344, which are connected in parallel and connected to the RC3 pin of the upgrade chip U34.

[0009] Furthermore, the second filter includes a resistor R569 and a capacitor C343, which are connected in parallel and connected to the RA4 pin of the upgrade chip U34.

[0010] Furthermore, the RA1 pin of the upgrade chip U34 is also connected to the P2.0 pin of the main control chip U31 through resistor R564; the RA2 pin of the upgrade chip U34 is also connected to the P2.0 pin of the main control chip U23 through resistor R565.

[0011] Furthermore, both the main control chip U23 and the main control chip U31 are XMC4700F100K1536AA chips; the upgrade chip U34 is a PIC16F1503-E / MG chip.

[0012] Compared with the prior art, the beneficial effects of this utility model are:

[0013] 1. It can update the firmware of various microcontroller models. Through chip-to-chip communication, it avoids frequent disassembly of microcontrollers and reduces the risk of damage.

[0014] 2. It reduces the difficulty of firmware upgrades for microcontrollers and makes it easier for staff to upgrade and maintain multi-microcontroller control systems.

[0015] 3. Using ICSP firmware upgrade, commands are sent to the upgrade chip via the RA0 and RA1 pins. This download method can encrypt the chip and protect the on-chip program. Attached Figure Description

[0016] Figure 1 This is the circuit schematic diagram of this utility model;

[0017] Figure 2 This is a partial enlarged circuit diagram of the upgraded chip U34 of this utility model;

[0018] Figure 3 This is a partial enlarged circuit diagram of the main control chip U31 of this utility model.

[0019] Figure 4 This is a partial enlarged view of the circuit of the main control chip U23 of this utility model. Detailed Implementation

[0020] The present invention will be further described below with reference to the accompanying drawings.

[0021] like Figure 1 – Figure 4 As shown in Embodiment 1, a circuit capable of multi-channel chip firmware upgrade includes an upgrade chip U34. The RC1 pin of the upgrade chip U34 is connected to the porst pin of the main control chip U31 through a resistor R566. The RC0 pin of the upgrade chip U34 is connected to the porst pin of the main control chip U23 through a resistor R567. The RC1 pin of the upgrade chip U34 is also connected to a pull-down resistor R572. The RC0 pin of the upgrade chip U34 is also connected to a pull-down resistor R573. The RC3 pin of the upgrade chip U34 is connected to filter one, pull-up resistor R558, and the tms pin of the main control chip U31. The RC4 pin of the upgrade chip U34 is connected to a pull-down resistor R570 and the tck pin of the main control chip U31. The RA4 pin of the upgrade chip U34 is connected to a pull-up resistor R561, filter two, and the tms pin of the main control chip U23. The RA5 pin of the upgrade chip U34 is connected to a pull-down resistor R568 and the tck pin of the main control chip U23.

[0022] Example 2: A circuit for multi-channel chip firmware upgrades, wherein the RC5 pin of the upgrade chip U34 is connected to the reset pin of the power supply chip U33 and the pull-up resistor R557 respectively; the RA1 pin of the upgrade chip U34 is connected to pin 5 of connector J3 through pull-up resistor R559, and the RA0 pin of the upgrade chip U34 is connected to pin 4 of connector J3 through pull-up resistor R560; the first filter includes a resistor R571 and a capacitor C344, which are connected in parallel and connected to the RC3 pin of the upgrade chip U34; the second filter includes a resistor... R569 and capacitor C343 are connected in parallel and connected to pin RA4 of upgrade chip U34; pin RA1 of upgrade chip U34 is also connected to pin P2.0 of main control chip U31 through resistor R564; pin RA2 of upgrade chip U34 is also connected to pin P2.0 of main control chip U23 through resistor R565; both main control chip U23 and main control chip U31 are XMC4700F100K1536AA chips; upgrade chip U34 is a PIC16F1503-E / MG chip, and the rest is the same as in embodiment 1.

[0023] The RA0 and RA1 pins of the upgrade chip U34 are the download interface of the upgrade chip. The chip used has a firmware boot module for booting itself, an application module for storing application programs, an information storage module for storing the attribute information of the application program, and a backup module for backing up and storing the application programs.

[0024] When the host computer sends a firmware upgrade command, it uses the ICSP firmware upgrade method. The command is sent to the upgrade chip U34 via its RA0 and RA1 pins. The upgrade chip then sends the command to the main control chips U23 and U31 via its RC1, RC3, RC4, RC5, RA4, and RA5 pins using the SWD download method. Internally, the main control chip locates the target microcontroller corresponding to the firmware upgrade command, sets an upgrade flag in the target microcontroller's information storage module, and resets and restarts the target microcontroller. When the target main control chips U23 and U31 run their own firmware boot modules and detect that they have been set with an upgrade flag, they back up the current application program of the target microcontroller (main control chip U23 and / or main control chip U31) to their own backup module and retrieve the target upgrade program from the host computer. When the target microcontroller obtains the target upgrade program, it stores the target upgrade program in its own application module, clears the upgrade flag, and resets and restarts itself. When the target microcontroller runs its own firmware boot module and detects that the upgrade flag has been cleared, the target upgrade program is verified; if the target upgrade program passes the verification, it is executed. The above-described working principle is existing technology and will not be elaborated further.

Claims

1. A circuit capable of multi-channel chip firmware upgrades, characterized in that: The system includes an upgrade chip U34. The RC1 pin of the upgrade chip U34 is connected to the porst pin of the main control chip U31 via resistor R566. The RC0 pin of the upgrade chip U34 is connected to the porst pin of the main control chip U23 via resistor R567. The RC1 pin of the upgrade chip U34 is also connected to a pull-down resistor R572. The RC0 pin of the upgrade chip U34 is also connected to a pull-down resistor R573. The RC3 pin of the upgrade chip U34 is connected to filter one, pull-up resistor R558, and the tms pin of the main control chip U31. The RC4 pin of the upgrade chip U34 is connected to a pull-down resistor R570 and the tck pin of the main control chip U31. The RA4 pin of the upgrade chip U34 is connected to a pull-up resistor R561, filter two, and the tms pin of the main control chip U23. The RA5 pin of the upgrade chip U34 is connected to a pull-down resistor R568 and the tck pin of the main control chip U23.

2. The circuit capable of multi-channel chip firmware upgrade according to claim 1, characterized in that: The RC5 pin of the upgrade chip U34 is connected to the reset pin of the power supply chip U33 and the pull-up resistor R557, respectively.

3. The circuit capable of multi-channel chip firmware upgrade according to claim 1, characterized in that: The RA1 pin of the upgrade chip U34 is connected to pin 5 of connector J3 via pull-up resistor R559, and the RA0 pin of the upgrade chip U34 is connected to pin 4 of connector J3 via pull-up resistor R560.

4. The circuit capable of multi-channel chip firmware upgrade according to claim 1, characterized in that: The filter includes a resistor R571 and a capacitor C344, which are connected in parallel and connected to the RC3 pin of the upgrade chip U34.

5. The circuit capable of multi-channel chip firmware upgrade according to claim 1, characterized in that: The second filter includes a resistor R569 and a capacitor C343, which are connected in parallel and connected to the RA4 pin of the upgrade chip U34.

6. The circuit capable of multi-channel chip firmware upgrade according to claim 1, characterized in that: The RA1 pin of the upgrade chip U34 is also connected to the P2.0 pin of the main control chip U31 through resistor R564; the RA2 pin of the upgrade chip U34 is also connected to the P2.0 pin of the main control chip U23 through resistor R565.

7. The circuit capable of multi-channel chip firmware upgrade according to claim 1, characterized in that: The main control chip U23 and main control chip U31 are both XMC4700F100K1536AA chips; the upgrade chip U34 is a PIC16F1503-E / MG chip.

Citation Information

Patent Citations

  • Chip firmware upgrading control circuit

    CN116226002A