Binary Display with LEDs
Could your PC terminal program be set up to automatically send an ASCII line feed after every character. That would explain why the final character your MCU receives is 0Ah. Check that the terminal program is set to a simple mode.