Abstract
This chapter takes a look at the Analog Comparator’s single interrupt. I think this is my favorite feature of the ATmega328P, and I will use it later on in this book when I give an example of a real-world application using interrupts. I have yet to see any articles or projects which make use of this interesting feature.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
On the ATmega328P in its 28 pin dual in line package, it is pins A0 through A5. If your Arduino board has a surface mount ATmega328AU package, then you can also use Arduino pins A6 and A7 – if those are connected to a header somewhere on the board. Some Uno clones, mine included, have this feature.
- 2.
Yes, that’s what we do; we have to disable the Analog Comparator’s disable bit!
- 3.
This is something that authors normally say when something is either too difficult, too simple, or they just can’t be bothered. None of this is the case here of course!
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Dunbar, N. (2024). Analog Comparator Interrupt. In: Arduino Interrupts. Maker Innovations Series. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-9714-8_11
Download citation
DOI: https://doi.org/10.1007/978-1-4842-9714-8_11
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-9713-1
Online ISBN: 978-1-4842-9714-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)