Arduino Interrupts: Harness the Power of Interrupts in Your Arduino and ATmega328 Code
- 5h 52m
- Norman Dunbar
- Apress
- 2024
Improve your projects by leveraging the power of interrupts. This comprehensive guide makes it easy to understand and use interrupts with the ATmega328P microcontroller found on Arduino boards.
With over 20 interrupts available, this book covers almost all of them and provides background information on how they work. You’ll work through the steps and code examples required to configure each of the covered interrupts. You'll also learn how to use them with Arduino, AVR C++ and with other development systems, like PlatformIO.
Interrupts can be intimidating, but by the end of this book, you will have the knowledge and skills to take full advantage of them and improve the performance and efficiency of your Arduino projects.
What You’ll Learn
- Understand interrupts and how they work
- Make interrupts easier to use in code
- Use interrupts in their Arduino sketches or AVR C++ applications
- See how to use interrupts in the Arduino Language and in AVR C++
- Avoid common pitfalls when working with interrupts
Who This Book Is For
Intermediate to advanced-level programmers who want to learn how to use interrupts in their Arduino sketches or AVR C++ applications..
About the Author
Norman Dunbar is a retired Oracle Database Administrator. Norman has had a long-running relationship with Electronics since childhood and computers since the late 1970s, and the Arduino was a perfect marriage of the two interests. With a love of learning new things, and finding out how things work, examining and explaining the Arduino Language and the hardware became a bit of a hobby. As piles of notes expanded, and after the publication of his first book, Arduino Software Internals, he collected some more of his notes into another book.
In this Book
-
Terminology
-
Introduction
-
Arduino Interrupts
-
Reset Interrupt
-
External Interrupts INT0/INT1
-
Pin Change Interrupts
-
Watchdog Interrupt
-
Timer/Counter Interrupts
-
SPI Interrupt
-
USART Interrupts
-
Analog-to-Digital Converter Interrupt
-
EEPROM Ready Interrupt
-
Analog Comparator Interrupt
-
TWI Interrupt
-
A Real-World Example