Serial communication has survived generations of computing because it is simple, inexpensive, robust, and easy to troubleshoot. Its roots lie in teletypes, which sent characters over long wires using current loops; RS-232 later became the familiar electrical standard, using positive and negative voltages to represent bits. The standard specifies electrical behavior, connectors, and control signals, but not what the transmitted data means. Its original 25-pin connector gave way in many computers to the smaller nine-pin DE-9, and charge-pump chips such as the MAX232 made it practical to generate RS-232 voltages from ordinary logic supplies.
A working connection requires both ends to agree on wiring and data format. Typical asynchronous settings such as 9600 8N1 specify speed, data bits, parity, and stop bits; flow control can use hardware lines or software characters to prevent a receiver from being overwhelmed. Connecting two computers may require a null-modem cable that crosses transmit and receive lines, and inconsistent handshaking or wiring can make devices incompatible. Today, USB adapters provide virtual serial ports for computers, while logic-level serial remains common in microcontrollers and industrial equipment. These signals are not interchangeable: true RS-232 voltages can damage a microcontroller input, and cable voltage must match the device. Despite changing connectors and interfaces, a UART, a few wires, and basic software still make serial useful for communicating and diagnosing systems.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.