Avr microcontroller frequency meter