Development of typical 'state' software patterns for Cortex­M microcontrollers in real time

Autor: Pavlo Katin, Viacheslav Chmelov, Vladimir Shemaev
Jazyk: angličtina
Rok vydání: 2020
Předmět:
Zdroj: Eastern-European Journal of Enterprise Technologies, Vol 3, Iss 9 (105), Pp 29-38 (2020)
ISSN: 1729-4061
1729-3774
Popis: There are real-time technical systems that require high speed of software solutions. At the same time, it is necessary to ensure the unification of the source code, the quality of software maintenance, and mathematical modeling at a relatively low cost of software and hardware solution. Such hardware can be implemented on the basis of mass microcontrollers of the Cortex-M architecture. The software part of these microcontrollers data could be implemented on the basis of a real-time operating system (RTOS). This study has found that the application of RTOS leads to a speed-related constraint. Simple software solutions are complex at unification, support, and have difficulties with mathematical modeling. To address these shortcomings, typical State software patterns have been developed for an auxiliary controller within a circuit of controlling mechanisms or sensors based on theCortex-M architecturemicrocontroller in real time, in a procedural paradigm. A feature of these patterns is the higher speed of the software solution compared to the solutions based on RTOS. The developed patterns make it possible to unify the source code for theCortex-M architecturemicrocontrollers from different manufacturers, improve maintenance, and adapt it to the mathematical model of the finite state machine. The study results were tested using the STM32F103 microcontroller employing the Cortex microcontroller software interface system (CMSIS) library. This allows the result obtained to be extended to MCs made by other manufacturers, which ensures the practical value of the developed patterns
Databáze: OpenAIRE