Analog Comparator Arduino. The negative input is analog pin 7 on the arduino. The inputs will be on pins 6 for plus and 7 for minus on the arduino uno board.
The analog comparator in arduino nano every s atmega4809 is more versatile and has more features. The atmega328p microcontroller in the arduino uno has a built in analog comparator. A non inverting input ain and an inverting input ain.
The avr s onboard analog to digital converter is very slow.
Consider this figure from the new book. The avr s onboard analog to digital converter is very slow. Yes it uses the digital pins not the analog pins. First seting the acbg analog comparator bandgap select bit to one tells the atmega328 to apply its own internal bandgap voltage about 1 1v to the positive input of the comparator.