How to use inbuilt analog comparator of AVR microcontroller
A comparator looks at two voltages and tells you which one is higher. Many AVR chips have one built in, so you can check a sensor level, a battery voltage or a zero crossing without using the ADC. This page explains the registers of the ATmega16 comparator and gives a short interrupt driven program that […]
How to use inbuilt analog comparator of AVR microcontroller Read More »

