/******************************************************* Project : DIY Mini VHF Frequency Display Version : 1.0 Date : 22.06.2014 Author : Alexander C. Frank Company : CHANGPUAK.CH Comments: Mini Add-on MC12080 (:20, :40, :80) Chip type : ATmega8 Program type : Application AVR Core Clock frequency: 10.24000 MHz Memory model : Small External RAM size : 0 Data Stack size : 256 *******************************************************/ #include // Alphanumeric LCD functions #include // Just used once - on power on #include // Some LCD routines like sprint // Dont forget to set the options // in the compiler settings ! #include // Some Math #include unsigned long int freq; unsigned long int high; float freqinmhz; char lcd_buffer[10]; #define SW2 PORTD.1 #define SW3 PORTD.0 // Timer 1 overflow interrupt service routine /////////////////////////////////////////// // VHF COMES IN HERE // 8 Bit interrupt [TIM1_OVF] void timer1_ovf_isr(void) { high++; } // ///////////////////////////////////////////////////////////////////////////////////// void main(void) { // Declare your local variables here // Input/Output Ports initialization // Port B initialization // Function: Bit7=In Bit6=In Bit5=In Bit4=In Bit3=In Bit2=In Bit1=In Bit0=In DDRB=(0<