#define F_CPU 3686411UL #include #include #include #include void USART_vInit(void){ UCSRB |= (1<1023) (max_adc_value=1023); //uart_puts("$1;1;;"); //$ + Channel No + Status No + No Timestamp uart_puts( itoa( ADC_Counter, s, 10 ) ); uart_puts(";"); uart_puts( itoa( max_adc_value, s, 10 ) ); uart_puts(";0\r\n"); //set counters back to 0; max_adc_value = 0; ADC_Counter = 0; }