/* * GccApplication2.c * * Created: 20.01.2018 11:40:43 * Author : dokul */ #define F_CPU 8000000 #define BAUD 2400 #define MYUBRR F_CPU/16/BAUD-1 #include #include void USART_Init( unsigned int ubrr) { /*Set baud rate */ UBRR0H = (unsigned char)(ubrr>>8); UBRR0L = (unsigned char)ubrr; /*Enable receiver and transmitter */ UCSR0B = (1<