Graphical development platform and method for digital power supply
By using a graphical development platform for digital power supplies, and leveraging a visual interface and standardized programming components, graphical programming of digital power supplies has been realized. This solves the problem of high development complexity under traditional programming methods, improves development efficiency, and lowers the entry barrier.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WUHAN SENMU LEISHI TECH CO LTD
- Filing Date
- 2026-04-14
- Publication Date
- 2026-05-12
AI Technical Summary
Current digital power supply development mainly relies on traditional programming methods, which have problems such as high entry barriers, long development cycles, and strong dependence on experience.
A graphical development platform for digital power supplies is provided, including a main development interface and a program running background. The main development interface includes a visual power configuration interface and a power programming interface, which supports setting chip peripheral parameters. The power programming component embeds standardized function programs, realizes the construction of power control logic through graphical programming, and converts the graphical program into computer language code for compilation and download.
It significantly reduces the complexity of digital power supply development, greatly improves development efficiency, lowers the development threshold, transforms traditional programming into modular programming, and simplifies the development process.
Smart Images

Figure CN122018884A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of digital power supply development technology, and in particular to a graphical development platform and method for digital power supplies. Background Technology
[0002] Currently, digital power supplies rely on processors for real-time calculation and control, and configure parameters through digital communication. Their dynamic response is rapid and precise, and their control strategies are flexible and intelligent. Digitalization enables more refined power management, remote monitoring, and fault diagnosis, significantly improving system reliability and energy efficiency. With the increasing complexity and intelligence of power electronic systems, the proportion of digital power supplies in high-end applications is increasing year by year, especially in fields such as 5G and new energy.
[0003] In existing technologies, digital power supply development mainly relies on traditional programming methods, which has obvious pain points: developers need to have a deep understanding of the underlying hardware details (such as register configuration and interrupt handling) and be proficient in the implementation of complex algorithms (such as digital loop control), which makes digital power supply development have high entry barriers, long development cycles and strong dependence on experience. Summary of the Invention
[0004] This invention provides a graphical development platform and method for digital power supplies, addressing the technical problems of existing digital power supply development relying primarily on traditional programming methods, which result in high entry barriers, long development cycles, and strong dependence on experience.
[0005] Firstly, a graphical development platform for digital power supplies is provided, including: The main development interface includes: - A power configuration interface, which includes a power control chip and multiple corresponding chip peripheral devices; wherein the model of the power control chip, the peripheral configuration interface, and the operating parameters of each chip peripheral device can be set. - A power programming interface, which includes a main loop program canvas, an interrupt service routine canvas and multiple power programming components. Each power programming component has a corresponding standardized function program. Multiple power programming components are configured and logically connected in the main loop program canvas and the interrupt service routine canvas according to power development requirements. Then, the working parameters of the function program of each power programming component are set to form a graphical program. The program runs in the background and is used to convert the generated graphical program into computer language code, compile it to generate power control program code, and then download the compiled power control program code to the physical power control chip.
[0006] In some embodiments, each power programming component is provided with component input / output terminals and component parameter setting window. The component input / output terminals of each power programming component are used to make logical connections with other power programming components according to power development requirements. The component parameter setting window of each power programming component is used to set the working parameters of its own function program.
[0007] In some embodiments, the power programming component includes at least three types: a basic programming component, a power control component, and a logic nesting component. The basic programming component is used to implement basic programming functions, the power control component is used to implement power control functions, and the logic nesting component is used to implement logic nesting functions.
[0008] In some embodiments, the program running background includes a code generation module, which is used to convert the graphical program formed in the main loop program canvas and the interrupt service routine canvas into computer language code according to a preset graphical logic protocol.
[0009] In some embodiments, the program runtime background further includes a program compilation module, which has a compilation toolchain and a compilation configuration file. The compilation toolchain is used to compile power control program code based on the converted computer language code and the compilation configuration file.
[0010] In some embodiments, the program running background further includes a program burning module, which is used to download the power control program code compiled by the program compilation module to the physical power control chip.
[0011] In some embodiments, the power control chip includes at least an ARM architecture, a DSP architecture, and a RISC-V architecture.
[0012] In some embodiments, the power configuration interface unifies the peripheral configuration interfaces of power control chips with different architectures through a preset chip configuration protocol.
[0013] In some embodiments, the chip peripheral devices include at least PWM, ADC, GPIO, DAC, CMP, USART, and CAN.
[0014] Secondly, a graphical development method for digital power supplies is provided, including the following steps: In the power configuration interface, set the model of the power control chip, the peripheral configuration interface, and the operating parameters of the corresponding chip peripheral devices; In the main loop program canvas and interrupt service program canvas of the power programming interface, multiple power programming components are configured and logically connected according to the power development requirements. Then, the working parameters of the function program of each power programming component are set to form a graphical program. The graphical program is converted into computer language code and then compiled to generate power control program code. The compiled power control program code is then downloaded to the physical power control chip.
[0015] The beneficial effects of the technical solution provided by this invention include: This invention provides a graphical development platform and method for digital power supplies. The platform integrates a main development interface and a program execution background. The main development interface includes a visual power configuration interface and a power programming interface, which is compatible with mainstream digital power control core chips and supports chip peripheral parameter settings. Simultaneously, the power programming components in the power programming interface embed standardized function programs. Developers can select appropriate power programming components according to power development needs in the graphical programming environment and connect them logically according to the power development requirements to graphically build the power control logic. Then, by setting the working parameters of the function programs of the power programming components, the graphical programming of the digital power supply can be completed. Subsequently, the program execution background converts and compiles the generated graphical program into power control program code, which is finally downloaded to the physical power control chip. This significantly reduces the complexity of digital power supply development, transforming the complex coding programming of traditional digital power supply development processes into intuitive modular programming, significantly improving the efficiency of digital power supply development and lowering the barrier to entry. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of the structure of a graphical development platform for digital power supplies provided in an embodiment of the present invention; Figure 2 An example diagram of a power control chip provided in an embodiment of the present invention; Figure 3 This is an example diagram of the chip peripheral parameter setting window for the power chip peripheral provided in an embodiment of the present invention; Figure 4 This is an example diagram of the main loop program canvas provided in an embodiment of the present invention; Figure 5 This is an example diagram of the interrupt service routine canvas provided in an embodiment of the present invention; Figure 6 Example diagram of a power programming component provided in an embodiment of the present invention; Figure 7An example diagram of the component parameter setting window of the power programming component provided in an embodiment of the present invention; Figure 8 A flowchart illustrating a graphical development method for digital power supplies provided in an embodiment of the present invention. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] This invention provides a graphical development platform for digital power supplies, which solves the technical problems of existing digital power supply development mainly relying on traditional programming methods, resulting in high entry barriers, long development cycles, and strong dependence on experience.
[0020] See Figure 1 As shown, this embodiment of the invention provides a graphical development platform for digital power supplies, including a main development interface and a program running background.
[0021] The main development interface includes a power configuration interface and a power programming interface. The power configuration interface configures the power control chip and its corresponding peripheral devices. The model of the power control chip, the peripheral configuration interface, and the operating parameters of each peripheral device can be set.
[0022] Specifically, the power control chip is compatible with mainstream digital power control chips, including at least ARM, DSP, and RISC-V architectures. Its peripheral devices include at least PWM, ADC, GPIO, DAC, CMP, USART, and CAN, supporting rapid PWM, ADC, GPIO, and communication functions. Furthermore, the power control chip features model setting labels and peripheral configuration interface setting labels. Each peripheral device has a peripheral parameter setting window for configuring its own operating parameters. Further, the power configuration interface can unify the peripheral configuration interfaces of power control chips with different architectures through a preset chip configuration protocol. This protocol predefines the description rules for chip architecture and peripheral resources. Each chip model writes a mapping file according to these rules, and the power configuration interface parses the mapping file to convert the chip configuration into a chip model. Figure 2 This is an example diagram of a 48-pin interface power control chip, including chip definition model setting labels and peripheral configuration interface setting labels. Figure 2Clicking the "Peripheral Configuration Interface Settings" tab allows you to complete the configuration of the peripheral configuration interface. Figure 3 This is an example diagram of the peripheral parameter setting window for the power chip peripherals. Appropriate operating parameter settings are provided according to the peripheral configuration interface setting tabs (such as PWM1A, GPIO23, ADC3, etc.).
[0023] The power programming interface includes a main loop program canvas, an interrupt service routine canvas, and multiple power programming components. Each power programming component has a corresponding standardized function program. Multiple power programming components are configured and logically connected in the main loop program canvas and interrupt service routine canvas according to the power development requirements. Then, the working parameters of the function program of each power programming component are set to form a graphical program.
[0024] The main loop program canvas is used to execute tasks with low real-time requirements, such as state machines and communication. The interrupt service canvas is used to execute tasks with high responsiveness requirements, such as PID control and fault protection. Both the main loop program canvas and the interrupt service canvas support adding and deleting power programming components, adjusting their positions, and making logic connections. Furthermore, they support commenting on the graphical programming content, improving the readability and maintainability of the control logic. Figure 4 Example diagram of the canvas in the main loop program. Figure 4 It is equipped with multiple power programming components, which are logically connected according to development requirements. Figure 5 Example diagram of the interrupt service routine drawing canvas. Figure 5 It is equipped with multiple power programming components, which are logically connected according to development requirements.
[0025] The background program is used to convert the generated graphical program into computer language code, then compile it to generate power control program code, and finally download the compiled power control program code to the physical power control chip.
[0026] The graphical development platform for digital power supplies provided in this invention integrates a main development interface and a program execution background. The main development interface includes a visual power configuration interface and a power programming interface, compatible with mainstream digital power control core chips and supporting chip peripheral parameter settings. Simultaneously, the power programming components in the power programming interface embed standardized function programs. Developers can select appropriate power programming components according to power development needs in the graphical programming environment and connect them logically according to the power development requirements to graphically build the power control logic. Then, by setting the working parameters of the function programs of the power programming components, the graphical programming of the digital power supply can be completed. Subsequently, the program execution background converts and compiles the generated graphical program into power control program code, which is then downloaded to the physical power control chip. This significantly reduces the complexity of digital power supply development, transforming the complex coding programming of traditional digital power supply development processes into intuitive modular programming, significantly improving digital power supply development efficiency and lowering the barrier to entry for digital power supply development.
[0027] As an optional implementation, in one embodiment of the invention, each power programming component is provided with component input / output terminals and a component parameter setting window. The component input / output terminals of each power programming component are used to make logical connections with other power programming components according to power development requirements, and the component parameter setting window of each power programming component is used to set the operating parameters of its own functional program. Conversely, the functional program of each power programming component is used to standardize the functional description of its own input / output terminal style and quantity and component parameter setting window.
[0028] See Figure 6 and Figure 7 As shown, each power programming component is configured as follows: Component Input / Output Terminals: Each power programming component has reserved input / output terminals for interaction between the component and external modules. The terminals are divided into two categories: logic terminals and data terminals. In addition to the basic float, uint, int, and bool types, the data terminals also include power state machine type and PID control type.
[0029] Component parameter setting window: Supports setting key operating parameters of the power programming component's function program, and defines the component's input and output terminal styles (terminal type, number of terminals) and input parameter values.
[0030] As an optional implementation, in one embodiment of the invention, see [link to relevant documentation]. Figure 4 and Figure 5As shown, power programming components include at least three categories: basic programming components, power control components, and nested logic components. Basic programming components implement basic programming functions, including constant assignment, variable reading and writing, loops, branching, and arithmetic / logic / bitwise operation components. Power control components implement power control functions, including PID control, state machines, PWM, GPIO, USART, CAN, Modbus, and fault protection components. Nested logic components implement nested logic functions, including sub-canvas components, allowing for the definition of nested sub-functions.
[0031] As an optional implementation, in one embodiment of the invention, the program runtime background includes a code generation module. This module converts the graphical program formed in the main loop program canvas and the interrupt service routine canvas into computer language code according to a preset graphical logic protocol. Specifically, conversion rules for the graphical program are predefined. The code generation module converts the program based on these rules to generate an intermediate representation file, and then parses the intermediate representation file to obtain the computer language code. The computer language code includes languages such as C, Python, and Java.
[0032] As an optional implementation, in one embodiment of the invention, the program runtime background also includes a program compilation module. This module has a compilation toolchain and a compilation configuration file. The compilation toolchain is used to compile and generate power control program code based on the converted computer language code and the compilation configuration file, significantly reducing the complexity of program design in digital power supply development. The program compilation module is also used to check the connection logic of different power programming components and the compiled power control program code. By checking the graphical programming and alerting to programming errors, the reliability of programming is improved.
[0033] As an optional implementation, in one embodiment of the invention, the program running background further includes a program burning module, which is used to download the power control program code compiled by the program compilation module to the physical power control chip. Specifically, the digital power graphical development platform of this embodiment of the invention is communicatively connected to a development circuit board with an embedded digital power control chip through a data interface. The program burning module downloads the power control program code compiled by the program compilation module to the physical power control chip, and the physical power control chip performs output control of the physical digital power device according to the generated power control program code.
[0034] See Figure 8 As shown, this embodiment of the invention provides a graphical development method for digital power supplies, including the following steps: Step S10: In the power configuration interface, set the model of the power control chip, the peripheral configuration interface, and the operating parameters of the corresponding chip peripheral devices.
[0035] Specifically, the power control chip is compatible with mainstream digital power control chips, including at least ARM, DSP, and RISC-V architectures. Its peripheral devices include at least PWM, ADC, GPIO, DAC, CMP, USART, and CAN, supporting rapid PWM, ADC, GPIO, and communication functions. Furthermore, the power control chip features model setting labels and peripheral configuration interface setting labels. Each peripheral device has a peripheral parameter setting window for configuring its own operating parameters. Further, the power configuration interface can unify the peripheral configuration interfaces of power control chips with different architectures through a preset chip configuration protocol. This protocol predefines the description rules for chip architecture and peripheral resources. Each chip model writes a mapping file according to these rules, and the power configuration interface parses the mapping file to convert the chip configuration into a chip model.
[0036] Click on the "Power Control Chip" tab to set the model and peripheral configuration interface. Then click on "Chip Peripheral Devices" and follow the pop-up window to set the operating parameters of the peripheral devices. Below are some parameter examples: PWM parameters: frequency, phase, duty cycle, synchronization control; ADC parameters: filtering method, filtering parameters, correction method, correction parameters; GPIO parameters: input / output mode, output level; USART parameters: baud rate, stop / data / parity bits, parity mode.
[0037] Step S20: Configure multiple power programming components and make logical connections in the main loop program canvas and interrupt service program canvas of the power programming interface according to the power development requirements, and then set the working parameters of the function program of each power programming component to form a graphical program.
[0038] Among them, see Figure 4 and Figure 5 As shown, the working principles of the main loop canvas and the interrupt service routine canvas are as follows: 1) Main loop logic programming in the main loop program canvas Power state machine control logic: The main loop program is built based on the state machine component, uses the state machine component to judge the state variables, and then executes the corresponding other power programming components (including sub-canvas components, etc.). After execution, the state transition component is executed to transfer to the next power programming component.
[0039] Communication logic: Acquire key parameters such as sampling parameters, system status, and fault codes at set time intervals.
[0040] 2) Interrupt control logic programming in the interrupt service routine canvas Clock interrupt logic: Repeatedly execute the interrupt program (such as PID control) according to the set interrupt cycle.
[0041] I / O interrupt logic: The interrupt routine is triggered by monitoring the I / O status (rising edge / falling edge).
[0042] Fault protection logic: Based on the set periodic detection and sampling parameters, the protection operation is triggered when the fault conditions are met.
[0043] Step S30: After converting the graphical program into computer language code, compile it to generate power control program code, and then download the compiled power control program code to the physical power control chip.
[0044] The graphical development method for digital power supplies provided in this invention integrates a main development interface and a program execution background. The main development interface includes a visual power configuration interface and a power programming interface, which is compatible with mainstream digital power supply control core chips and supports chip peripheral parameter settings. Simultaneously, the power programming components in the power programming interface embed standardized function programs. Developers can select appropriate power programming components according to power supply development needs in the graphical programming environment and connect them logically according to the power supply development requirements to graphically build the power control logic. Then, by setting the working parameters of the function programs of the power programming components, the graphical programming of the digital power supply can be completed. Subsequently, the program execution background converts and compiles the generated graphical program into power control program code, which is finally downloaded to the physical power control chip. This significantly reduces the complexity of digital power supply development, transforming the complex coding programming in the traditional digital power supply development process into intuitive modular programming, significantly improving the efficiency of digital power supply development and lowering the barrier to entry.
[0045] In the description of this invention, it should be noted that the terms "upper," "lower," etc., indicating the orientation or positional relationship are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Unless otherwise expressly specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two elements. For those skilled in the art, the specific meaning of the above terms in this invention can be understood according to the specific circumstances.
[0046] It should be noted that in this invention, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0047] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features of the invention herein.
Claims
1. A graphical development platform for digital power supplies, characterized in that, include: The main development interface includes: - A power configuration interface, which includes a power control chip and multiple corresponding chip peripheral devices; wherein the model of the power control chip, the peripheral configuration interface, and the operating parameters of each chip peripheral device can be set. - A power programming interface, which includes a main loop program canvas, an interrupt service routine canvas and multiple power programming components. Each power programming component has a corresponding standardized function program. Multiple power programming components are configured and logically connected in the main loop program canvas and the interrupt service routine canvas according to power development requirements. Then, the working parameters of the function program of each power programming component are set to form a graphical program. The program runs in the background and is used to convert the generated graphical program into computer language code, compile it to generate power control program code, and then download the compiled power control program code to the physical power control chip.
2. The digital power supply graphical development platform according to claim 1, characterized in that: Each of the power programming components is provided with component input / output terminals and component parameter setting window. The component input / output terminals of each power programming component are used to make logical connections with other power programming components according to power development requirements. The component parameter setting window of each power programming component is used to set the working parameters of its own function program.
3. The digital power supply graphical development platform according to claim 1, characterized in that: The power programming component includes at least three types: basic programming component, power control component, and logic nesting component. The basic programming component is used to implement basic programming functions, the power control component is used to implement power control functions, and the logic nesting component is used to implement logic nesting functions.
4. The digital power supply graphical development platform according to claim 1, characterized in that: The program execution background includes a code generation module, which is used to convert the graphical program formed in the main loop program canvas and the interrupt service routine canvas into computer language code according to a preset graphical logic protocol.
5. The digital power supply graphical development platform according to claim 4, characterized in that: The program running background also includes a program compilation module, which has a compilation toolchain and a compilation configuration file. The compilation toolchain is used to compile and generate power control program code based on the converted computer language code and the compilation configuration file.
6. The digital power supply graphical development platform according to claim 5, characterized in that: The program running background also includes a program burning module, which is used to download the power control program code compiled by the program compilation module to the physical power control chip.
7. The digital power supply graphical development platform according to claim 1, characterized in that: The power control chip includes at least ARM architecture, DSP architecture, and RISC-V architecture.
8. The digital power supply graphical development platform according to claim 7, characterized in that... : The power configuration interface unifies the peripheral configuration interfaces of power control chips with different architectures through a preset chip configuration protocol.
9. The digital power supply graphical development platform according to claim 1, characterized in that: The peripheral devices of the chip include at least PWM, ADC, GPIO, DAC, CMP, USART and CAN.
10. A graphical development method for digital power supplies, using the graphical development platform for digital power supplies as described in claim 1, characterized in that, Includes the following steps: In the power configuration interface, set the model of the power control chip, the peripheral configuration interface, and the operating parameters of the corresponding chip peripheral devices; In the main loop program canvas and interrupt service program canvas of the power programming interface, multiple power programming components are configured and logically connected according to the power development requirements. Then, the working parameters of the function program of each power programming component are set to form a graphical program. The graphical program is converted into computer language code and then compiled to generate power control program code. The compiled power control program code is then downloaded to the physical power control chip.