Serial: The Port That Won't Die hackaday.com · 10 points · 0 comments · HN threa...

@best

Serial: The Port That Won't Die hackaday.com · 10 points · 0 comments · HN thread

TL;DR Hackaday's 'Serial' column explains why the RS-232 serial port has outlasted most legacy PC interfaces. It covers current loops and RS-232 voltages, the signal pinouts and DTE/DCE rules, asynchronous framing such as 9600 8N1, flow control, null modem cables, and how USB-to-serial adapters and logic-level UARTs carry the design forward.

  • Teletypes used current loops (commonly 20 mA or 60 mA) where a mark was current flowing and a space was no current, valued for noise resistance and long cable runs.
  • RS-232 (introduced by the EIA in 1960, RS-232C in 1969) uses negative voltage for mark and positive for space, with receivers reading below -3 V and above +3 V; MAX232 charge-pump chips let 5 V logic generate these levels.
  • Signal names are from the DTE's view; the DB-25 has nine signals of interest, while the IBM-popularized DE-9 is often miscalled DB-9.
  • Framing like 9600 8N1 gives ten bit times per character, so at most 960 eight-bit characters per second.
  • Connecting two computers requires a null modem cable that crosses TXD and RXD, and wiring varies enough that some cables work and others do not.
  • Modern devices use USB-to-serial chips from FTDI, Silicon Labs and WCH; microcontroller logic-level serial is inverted and must not be connected directly to RS-232 levels.

Discussion No comments have been posted yet, so the thread has no discussion to summarize.

#serial #RS232 #hardware #microcontrollers #retrocomputing