Supercharge Your Innovation With Domain-Expert AI Agents!

Phase-shifting PWM algorithm automatic code generation method and device based on model design

A PWM algorithm and automatic code technology, applied in the field of computer programming, can solve problems such as increasing difficulty, spending a lot of time, slow system development, etc., to achieve the effect of improving work efficiency, reducing research and development cycles, and fast algorithm modeling

Pending Publication Date: 2020-06-09
SHANGHAI DIANJI UNIV
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Existing MCU development often adopts a top-down sequential design method, but with the gradual increase in system complexity, it is difficult for developers to simply exchange and communicate with each other to meet the needs of complex system design
In addition, developers not only need to develop control algorithms, but also spend a lot of time to master the correct settings of various registers inside the MCU and software programming methods, which affects the development efficiency and progress
[0003] The existing control unit development process generally uses MATLAB to simulate first, and when the simulation results are satisfactory, the algorithm is written in C language and implemented on the target MCU. The disadvantages are complex programming, high simulation costs, and slow system development.
In addition, in the implementation process, the traditional software programming method reduces the efficiency of programming, increases the difficulty, and introduces more human errors.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Phase-shifting PWM algorithm automatic code generation method and device based on model design
  • Phase-shifting PWM algorithm automatic code generation method and device based on model design

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Such as figure 2 As shown, TMS320F28335 is used as the controller, and the phase-shifting PWM is generated by using the model-based design method, which is finally used to control the full-bridge circuit. Wherein, the steps of using the phase-shifting PWM algorithm automatic code generation method based on model design to complete the control of the full-bridge circuit are as follows:

[0037] Step S1: according to the design requirements of the full-bridge circuit, optimize the corresponding control algorithm;

[0038] Step S2: After the simulation of the control algorithm is passed, retain the control algorithm part on the basis of the original simulation model, delete the control object and its external circuit, add MCU peripheral modules and connect the input and output ports of the control algorithm;

[0039] Step S3: Modify the verified algorithm model to the Simulink model of the MCU processor according to the model parameters set by the target board model;

...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a phase-shifting PWM algorithm automatic code generation method based on model design. The method comprises a software module, a quick implementation tool chain and a controlunit. After the software module loads a phase shift PWM algorithm of a circuit control model, an embedded code is generated through the quick implementation tool chain and transmitted to the control unit, and the control unit loads the embedded code to achieve semi-physical simulation of the circuit control model. Compared with the prior art, the method has the advantages that the research and development period is shortened, the working efficiency of programmers is improved, and the manual programming error rate is reduced.

Description

technical field [0001] The invention relates to the field of computer programming, in particular to an automatic code generation method and device for a phase-shifting PWM algorithm based on model design. Background technique [0002] Existing MCU development often adopts a top-down sequential design method, but with the gradual increase of system complexity, it is difficult for developers to simply exchange and communicate with each other to meet the needs of complex system design. In addition, developers not only need to develop control algorithms, but also spend a lot of time to master the correct settings of various registers inside the MCU and software programming methods, which affects the development efficiency and progress. [0003] The existing control unit development process generally uses MATLAB to simulate first, and when the simulation results are satisfactory, the algorithm is written in C language and implemented on the target MCU. The disadvantages are compl...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/35G06F8/76G06F11/36G06F8/30G06F30/39
CPCG06F8/35G06F8/76G06F11/3668G06F8/315
Inventor 伏永浩蒋赢郑春生高金玲黄蓉蓉杨文涛
Owner SHANGHAI DIANJI UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More