/* * sendingThroughSerial.c * Example 11-11 for Atmega328 * * Created: 4/14/2015 9:53:10 PM */ #define F_CPU 16000000UL #include void usart_init (void); void usart_send (unsigned char ch); int main(void) { unsigned char str[] = "The Earth is but one country and mankind its citizens.\r"; unsigned char strLenght = 55; unsigned char i = 0; usart_init(); while(1) { usart_send(str[i++]); if (i >= strLenght) i = 0; } return 0; } void usart_init (void) { UCSR0B = (1<