#include #include #include #include char data[20]; int k; void USART_Init(void) { UBRRL = 25; // sets 1Mhz, 2400bps, .2% error UCSRB = (1<> 8; TCNT1L=0xF85D & 0xff; // Place your code here delay_ms(1000); } void main() { char done[] = "Done"; char start[] = "Start"; // Timer/Counter 1 initialization // Clock source: System Clock // Clock value: 0.977 kHz // Mode: Normal top=FFFFh // OC1A output: Discon. // OC1B output: Discon. // Noise Canceler: Off // Input Capture on Falling Edge // Timer1 Overflow Interrupt: On // Input Capture Interrupt: Off // Compare A Match Interrupt: Off // Compare B Match Interrupt: Off TCCR1A=0x00; TCCR1B=0x05; TCNT1H=0xF8; TCNT1L=0x5D; ICR1H=0x00; ICR1L=0x00; OCR1AH=0x00; OCR1AL=0x00; OCR1BH=0x00; OCR1BL=0x00; // Timer(s)/Counter(s) Interrupt(s) initialization TIMSK=0x04; //#asm("sei") SFIOR=(0<