Analog Comparator
摘要
The chapter will introduce us to the Analog Comparator. This hardware feature of the ATmega328P compares a reference voltage on pin D6/AIN0 with the voltage on pin D7/AIN1—although any of the Analog to Digital Converter’s pins can also be used—and if the measured voltage is lower, or equal, to the reference voltage, the comparator’s output bit, ACO goes high.