Your Desktop-PC doesn’t have a Serial Port in the back side? Don’t be so sure of it. If you can’t see it, doesn’t mean it ain’t there!
All you have to do is look properly.
If you are a full-time laptop user, stop right here! This article is of no help to you. Good old desktop users might have a shot at a native COM port in your computer! Just read along.
What is this UART anyway?
UART is one of the most preferred form of debugging in embedded platforms. Be it an 8 bit system handling meager tasks or a massive 64 bit system running Linux. All of them support the UART protocol. UART, as a protocol, is primitive (it should take you roughly 15 minutes to know it all). For this reason, it is very easy to implement it in the chip’s silicon, making it very easy for us to configure and get it up and running almost immediately.
Since motherboards operate at 3.3 volts, they had to put out these UART lines through RS232 levels to increase the cable distance. This also addresses the problem of logic level compatibility between the interface hardware. The sender up’s his level to RS232 and expects the receiver to bring it to his level somehow.
For this reason, a massive D-Sub 9 connector or DE-9 Connector (often mistakenly referred to as the DB-9 connector) was chosen to improve stability of the contact. It later turned out the connector was too fat to be on laptops any more. Slowly this trend crept into the PC market as well and motherboard manufacturers stopped putting those connectors. Most (if not all) of today’s laptops and desktops don’t ship with a serial port connector on them.
Wait, all is not lost!
Some popular alternatives are USB to Serial converters such as FTDI’s FT232A or Silicon lab’s CP10x to emulate a serial port through USB on our new computers. I mentioned these two as they are the most popular chips.
There are some other not-so-popular alternatives such as, a PCI/PCIExpress card to achieve the same functionality. Apart from this, the USB standard advertises a Communications Device Class (CDC) which didn’t kick off very well for a lot of reasons.
Can we do something about this?
Like I said, most of the processors and controllers, come with UART. The engineers (the BSP developers) who work on the motherboard, before they are released to the market use them to run peripheral troubleshooting and debugging. The manufacturers just do not put an external port to access it. This means there is a small probability that there is still a UART port on our motherboards.
I opened my computer one day for cleaning and noticed that there were a lot unsoldered connectors on my motherboard (an Asus P7H55 MLX). Force of habit, I was looking through the silk screen for names when I came across the pads for a 10 pin box connector named aEURoeCOM 2aEUR.
Alert: Following this method can damage your motherboard and/or void your warranty. Do this at your own risk. Also, the connector on the motherboards are not RS232 levels They are raw 3.3v logic signals.
My hand automatically reached out for the soldering iron and in no time I had the box connector in place and a 10 pin FRC wire pushed on to it.
Matching the pinout
Then I looked up the serial port 10 pin connection pin out. I knew if they put it on a system as sophisticated as the motherboard, they would surely have followed the standard pinouts. But I wasn’t going leave any stone un turned. I verified the power lines and then started a serial port application on my machine and sent out 0xAA to see a square wave on the scope and then short the TX to what I thought was the RX and did a successful loopback test.
Originally my Idea was to make a long wire out of it and then made a PCB with the DE9 connector. But then long back I had purchased a PCI Serial card. As luck would have it, the connector had a UART to RS232 converter in it.
Now all I had to do was to connect the other end of the FRC connector to the DE9 connector that came with the PCI card and put it to one of my computer’s chassis slots.
Here is the full version of the wire running from the motherboard to the back of my computer,
But certainly having a native serial port is a big relief. There was a risk meddling with my motherboard like that but, I must admit it was worth it!
Liked this post? Subscribe with your email and we will keep you engagged!