Interrupts in Cortex-M4 based microcontrollers
Abstract
An interrupt is an external or an internal (e.g., timer) event that requests the CPU to stop what it is currently executing, and immediately jump to execute a different code. The code that the CPU jumps to is known as the interrupt service routine (ISR). Interrupts are asynchronous events since the CPU does not know when the interrupt will occur in a program as it can occur at any time. The time between the generation of an interrupt request and the entry into the ISR is known as the “interrupt latency.” The faster the interrupt latency (i.e., the lower the value) is always better as this shows that the system response is fast. This chapter describes how to use the external as well ...
Get ARM-Based Microcontroller Multitasking Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.