Skip to Main Content
AVR Programming
book

AVR Programming

by Elliot Williams
January 2014
Intermediate to advanced content levelIntermediate to advanced
474 pages
13h 28m
English
Make: Community
Content preview from AVR Programming

Chapter 8. Hardware Interrupts

This chapter introduces perhaps the most useful of the AVR’s hardware peripherals—the interrupt system. Up to now, our programs have been very much linear, going from one command to the next command to the next command. However, you often have to deal with input from the real world that arrives asynchronously, almost at random—you want the AVR to respond when you press the button, not when it’s ready to have you press the button.

In this chapter, we’ll take our first steps into interrupt programming. The first two examples will demonstrate how interrupts can run code for you any time an input pin changes state. And while it’s pretty cool to have the interrupt hardware directly ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Embedded Linux Programming - Third Edition

Mastering Embedded Linux Programming - Third Edition

Frank Vasquez, Chris Simmonds

Publisher Resources

ISBN: 9781449356484Errata PageSupplemental Content