Key Considerations When Designing Subroutines for Microcontrollers

Key Considerations When Designing Subroutines for Microcontrollers

In microcontroller programming, writing subroutines is very important as it not only enhances code reusability but also makes the main program structure clearer and easier to maintain. However, writing efficient subroutines is not an easy task and requires consideration of multiple aspects. So let’s take a look at what areas need attention. 1. Subroutine Naming … Read more

Understanding FreeRTOS Stack Management: A Comprehensive Guide

Understanding FreeRTOS Stack Management: A Comprehensive Guide

Previous Article: Understanding FreeRTOS Application Scenarios In this article, the term “stack” refers to the memory area accessed by the computer (including MCU) processor through the stack pointer register. Common access methods include Push/Pop, as well as indirect addressing based on the stack pointer register. Let’s first review how local variables are stored in C … Read more