Having a bit of an issue with receiving strings via UART.
Using an ATmega8.
Coding in C on Atmel Studio 6.2.
Testing with RS232 terminal software, Termite 3.1. And CP2102 USB to UART converter.
My Receive String function code is attached. I have tested my functions to transmit/receive characters, and to transmit strings, using Termite --these behaved as expected, showing that the hardware is setup properly, the RS232 terminal software is functional and the UART functions work.
Now I am requesting the MCU to receive a string from Termite and thereafter transmit the same string back to it. Termite receives a number of random characters at this point, this result is also attached.
Any advice will be deeply appreciated.