Sorry about making yet another post about UART communication.
I'm trying to send a single character from my Arduino Uno to my PC using UART.
I'm not using a USB to Serial converter and instead i've connected the TX pin of my Arduino directly to RX port of my old PC's serial port like this:
https://www.virtual-serial-port....
Ground of Arduino is also connected to the gourd of serial PC port, I' have left out the RX pin on Arduino for now.
The code is pretty much copied from the datasheet, let me know if you need to see i.
(I'm not using Arduino dev toolset, i'm just using avr-gcc, refer to this post: https://www.avrfreaks.net/forum/...)
On my PC i'm trying to read the channel with screen:
screen /dev/ttyS0 115200
Same baud rate is used in my code:
#define USART_BAUDRATE 115200
I have read there are voltage differences between TTL UART on MCUs and 16550 UART on my old PC. Is that why I get garbage results? am I lucky the board isn't fried?
Or is this setup correct and my code could be wrong?
I have used various baud rates, different codes from googling, but I keep seeing garbage.