Good afternoon everybody.
I've recently tried to program an ATmega16 to do serial communication with my computer using a very simple code of serial communication (just send and receive data). Sadly, when I check how the circuit works it only sends one data, €, which in ASCII is an 1's byte, which crearly shouldn't happen since it isn't a data I am programming to send in any situation. I don't know if it has something to do with the UDR register or if the programmer (USBASP) or the USB to TTL Bridge malfunctions. Any help would be of great appreciation. My .c file from my AVR Studio project is attached below.