×

You are using an outdated browser Internet Explorer. It does not support some functions of the site.

Recommend that you install one of the following browsers: Firefox, Opera or Chrome.

Contacts:

+7 961 270-60-01
ivdon3@bk.ru

Model-based design in the engine control algorithm code generation for the STM32 microcontroller

Abstract

Model-based design in the engine control algorithm code generation for the STM32 microcontroller

Zubkov P.S., Kulaev N.A., Artamonov V.Y., Dubov N.V.

Incoming article date: 17.04.2020

Using the concept of the model-based design, this article considers the stages of generating the C-code of the engine control algorithm using the Embedded Coder and STM32 Embedded Target tools for Matlab/Simulink. For the example of the chosen stm32 microcontroller, its peripherals will be initialized and connected to the graphical model of the algorithm. In addition, a description of all the blocks and their functions of the resulting model is provided. At the last stage, the C code is generated, ready for loading it into the microcontroller and further controlling the motor as part of the electric drive.

Keywords: Model-based design, Matlab/Simulink, STM32, the control algorithm, STM32 Embedded Target, Embedded Coder