O'Reilly logo

Programming 32-bit Microcontrollers in C by Lucio Di Jasio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Day 5 Interrupts

The Plan

For reasons of efficiency, size, and ultimately cost, in the embedded-control world the smallest applications, which happen to be implemented in the highest volumes, most often cannot afford the “luxury” of a multitasking operating system and use the interrupt mechanisms instead to “divide their attention” among the many tasks at hand. Interrupts provide a very strong mechanism for real-time control, allowing our applications to deal with asynchronous external events. Unfortunately, the C programming language does not incorporate the concept of interrupts in its model, leaving the embedded-control programmer with the only choice of defining interrupts as a special kind of function.

Today we will see how the MPLAB

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required