6

Interrupts

This chapter covers interrupts. As the name implies, they deal with stopping the normal program execution upon recognition of a predesignated event and then attending to that event.

Interrupts

An interrupt from a high-level perspective is any process that momentarily stops an ongoing program execution and requires the MCU to execute specialized code related to the event that initiated the interrupt. This specialized code is known as an interrupt handler. The event that causes the interrupt is termed an asynchronous event, meaning that it has no causal relationship with the normally executing program code. You will shortly see that timer peripherals are typically the source of these asynchronous events. Data communication channels ...

Get Programming with STM32: Getting Started with the Nucleo Board and C/C++ 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.