/* * Project name : Demo5_1 : UART - send / receive characters with waiting * Author : Avans-TI, JW * Revision History : 20110227: - initial release; * Description : This program receive a character, and sends it back * Test configuration: MCU: ATmega128 Dev.Board: BIGAVR6 Oscillator: External Clock 08.0000 MHz Ext. Modules: - SW: AVR-GCC * NOTES: - Turn ON switch 12, PEO/PE1 tot RX/TX */ #define F_CPU 8000000UL #include "uart0.h" #include "lcd.h" // wait(): busy waiting for 'ms' millisecond // Used library: util/delay.h void wait( int ms ) { for (int tms=0; tms