This is simple program for USART communication with CPU clock 8MHz and Baud rate 9600. Here USART is configured with 8 bit character size in asynchronous mode.
Code: https://www.dropbox.com/s/bu4rdu9ebrxtsor/usart_pro.c?dl=0
Blog:http://codenlogic.blogspot.in/2015/07/usart-communication-using-atmega16.html