Example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating system

This article provides an example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating system. The processes are described, including flashing of the built-in LED, transmitting and receiving data via the serial interface USART1 and changing the freque...

Full description

Saved in:
Bibliographic Details
Main Authors: Vladislav A. Vdovin, Igor V. Trubin, Vitaly G. Trubin, Pavel D. Shendrik
Format: Article
Language:English
Published: Tomsk Polytechnic University 2025-06-01
Series:Известия Томского политехнического университета: Промышленная кибернетика
Subjects:
Online Access:https://indcyb.ru/journal/article/view/88/71
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1839648522080616448
author Vladislav A. Vdovin
Igor V. Trubin
Vitaly G. Trubin
Pavel D. Shendrik
author_facet Vladislav A. Vdovin
Igor V. Trubin
Vitaly G. Trubin
Pavel D. Shendrik
author_sort Vladislav A. Vdovin
collection DOAJ
description This article provides an example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating system. The processes are described, including flashing of the built-in LED, transmitting and receiving data via the serial interface USART1 and changing the frequency of flashing of the built-in LED by pressing the button with the processing of contact rattling. The software part is organized using finite automata, which makes it possible to achieve pseudo-multitasking in the system. The article discusses in detail the initialization of I/O ports, configuring the UART interface and timer, as well as working with interrupts and global variables.
format Article
id doaj-art-51a1d9a51aae44b4a8c5481e461aa943
institution Matheson Library
issn 2949-5407
language English
publishDate 2025-06-01
publisher Tomsk Polytechnic University
record_format Article
series Известия Томского политехнического университета: Промышленная кибернетика
spelling doaj-art-51a1d9a51aae44b4a8c5481e461aa9432025-06-28T18:10:39ZengTomsk Polytechnic UniversityИзвестия Томского политехнического университета: Промышленная кибернетика2949-54072025-06-01321710.18799/29495407/2025/2/88Example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating systemVladislav A. Vdovin0Igor V. Trubin1Vitaly G. Trubin2Pavel D. Shendrik3Novosibirsk State Technical University, Novosibirsk, Russian FederationNovosibirsk State Technical University, Novosibirsk, Russian FederationNovosibirsk State Technical University, Novosibirsk, Russian FederationNovosibirsk State Technical University, Novosibirsk, Russian FederationThis article provides an example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating system. The processes are described, including flashing of the built-in LED, transmitting and receiving data via the serial interface USART1 and changing the frequency of flashing of the built-in LED by pressing the button with the processing of contact rattling. The software part is organized using finite automata, which makes it possible to achieve pseudo-multitasking in the system. The article discusses in detail the initialization of I/O ports, configuring the UART interface and timer, as well as working with interrupts and global variables.https://indcyb.ru/journal/article/view/88/71automatic programmingstm32f103 microcontrollerpseudo-parallel executionpseudo-multitaskingfinite automatausartled controlprocessing of button contact rattlinginitializationinterruptc programming
spellingShingle Vladislav A. Vdovin
Igor V. Trubin
Vitaly G. Trubin
Pavel D. Shendrik
Example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating system
Известия Томского политехнического университета: Промышленная кибернетика
automatic programming
stm32f103 microcontroller
pseudo-parallel execution
pseudo-multitasking
finite automata
usart
led control
processing of button contact rattling
initialization
interrupt
c programming
title Example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating system
title_full Example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating system
title_fullStr Example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating system
title_full_unstemmed Example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating system
title_short Example of pseudo-parallel execution of three tasks on an STM32F103 microcontroller without using an operating system
title_sort example of pseudo parallel execution of three tasks on an stm32f103 microcontroller without using an operating system
topic automatic programming
stm32f103 microcontroller
pseudo-parallel execution
pseudo-multitasking
finite automata
usart
led control
processing of button contact rattling
initialization
interrupt
c programming
url https://indcyb.ru/journal/article/view/88/71
work_keys_str_mv AT vladislavavdovin exampleofpseudoparallelexecutionofthreetasksonanstm32f103microcontrollerwithoutusinganoperatingsystem
AT igorvtrubin exampleofpseudoparallelexecutionofthreetasksonanstm32f103microcontrollerwithoutusinganoperatingsystem
AT vitalygtrubin exampleofpseudoparallelexecutionofthreetasksonanstm32f103microcontrollerwithoutusinganoperatingsystem
AT paveldshendrik exampleofpseudoparallelexecutionofthreetasksonanstm32f103microcontrollerwithoutusinganoperatingsystem