© Norman Dunbar 2020
N. DunbarArduino Software Internalshttps://doi.org/10.1007/978-1-4842-5790-6_9

9. ATmega328P Hardware: ADC and USART

Norman Dunbar1 
(1)
Rawdon, West Yorkshire, UK
 

This chapter continues our look at the various hardware components of the ATmega328P. Some of them are not visible (“surfaced”) in the Arduino IDE or Language, so they may at first appear new to you – the Analogue Comparator, for example.

The information in this chapter and Chapter 8 should link up with what you have already seen in Chapters 2 and 3 which covered the compilation process and the Arduino Language.

9.1 The Analogue Comparator

The ATmega328P has a built-in device, called the Analogue Comparator, which compares the input voltage on pin AIN0, the positive input, ...

Get Arduino Software Internals: A Complete Guide to How Your Arduino Language and Hardware Work Together now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.