Analog Comparator Interrupt

  • Chapter
  • First Online:
Arduino Interrupts

Part of the book series: Maker Innovations Series ((MIS))

  • 334 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
EUR 29.95
Price includes VAT (France)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
EUR 46.99
Price includes VAT (France)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 58.01
Price includes VAT (France)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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. 2.

    Yes, that’s what we do; we have to disable the Analog Comparator’s disable bit!

  3. 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

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics

Navigation