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...
Saved in:
Main Authors: | , , , |
---|---|
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!
|
Summary: | 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. |
---|---|
ISSN: | 2949-5407 |