Abstract
An embedded system either responds to an asynchronous request or performs an operation in a periodic manner most of the times. One approach to handle such requests is letting the CPU wait in an infinite loop in idle mode till an asynchronous request comes or event period has been reached. A better approach for such operations is the interrupt usage. This method handles the problem such that the CPU performs its usual (or synchronous) operation and handles asynchronous or periodic operations when requested. Therefore, we will start with explaining the interrupt concept in embedded systems first in this chapter. Then, we will focus on setting up and usage of interrupts in the STM32F4 microcontroller. The recent trend in embedded systems is consuming as less power as possible. Hence, the system deployed to a remote location can run on battery or by its own energy harvesting module. Therefore, we will also consider power management besides interrupt concepts in this chapter. As the end of the chapter application, we will add interrupt and power management operations to the robot vacuum cleaner developed throughout the book.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
STMicroelectronics: STM32F427xx STM32F429xx, docid024030 rev 10th edn. (2018)
STMicroelectronics: STM32F405/415, STM32F407/417, STM32F427/437 and STM32F429/439 advanced Arm-based 32-bit MCUs, rm0090 rev 19th edn. (2021)
Yiu, J.: The Definitive Guide to Arm Cortex-M3 and Cortex-M4 Processors, 3rd edn. Newnes, London (2014)
Author information
Authors and Affiliations
5.1 Electronic supplementary material
Rights and permissions
Copyright information
© 2022 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Ünsalan, C., Gürhan, H.D., Yücel, M.E. (2022). Interrupts and Power Management. In: Embedded System Design with ARM Cortex-M Microcontrollers. Springer, Cham. https://doi.org/10.1007/978-3-030-88439-0_5
Download citation
DOI: https://doi.org/10.1007/978-3-030-88439-0_5
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-88438-3
Online ISBN: 978-3-030-88439-0
eBook Packages: EngineeringEngineering (R0)