APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

SCO Unix Serial Communications and UUCP


Some material is very old and may be incorrect today

© December 2003 (various)

This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

What do the terms UART, 8250, 16450 and 16550 mean?

UART means Universal Asynchronous Receiver/Transmitter. This is a chip which receives and transmits data serially; each serial port you have will use one, though it is possible that several may be integrated into one chip.

8250, 16450 and 16550 are all common types of UARTs. The 8250 is an old chip which cannot run at high speed. The 16450 is similar to the 8250 except that it supports data communications at higher speeds. Both of these chips generate an interrupt for every character that is sent or received, which basically tells the CPU either "Here is some data for you" or "Feed me!" This is all very well, except that at high speed, the number of interrupts (nearly 4000 per port per second at 38 400 bps) can overwhelm a CPU, bringing system performance way down. Also, if the CPU is busy servicing another interrupt at the time, the serial port's interrupt may not be serviced in time, which will cause a character to be lost.

The 16550 is pin-compatible with the 16450 and, by default, runs in 16450 mode. This makes it compatible with software which is not 16550-aware. If your software is 16550-aware, it can turn on a special mode in which the 16550 buffers all data with 16-byte internal buffers. This not only allows the CPU to deal with far more bytes at a time, increasing efficiency, but also means that if the CPU can't service the interrupt before the next character comes in, there's still space in the buffer for it.

16550 support was introduced in Xenix 2.3.4, ODT 1.1 and Unix 3.2.2. If you have these, or later, versions, your operating system will automatically detect 16550-equipped ports and will enable their buffering. A third-party serial driver called FAS includes 16550 awareness in its feature set; you may wish to investigate this as well. FAS can be found at ftp://ftp.fu-berlin.de/pub/unix/driver/fas/.

Note that the above is not really applicable to intelligent multiport serial cards. While these cards may well use 16550s, it is the processor on the serial card which is responsible for dealing with the serial ports it controls, and the main CPU has nothing to do with the UARTs.

If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> (SCO Unix) What do the terms UART, 8250, 16450 and 16550 mean?


Inexpensive and informative Apple related e-books:

Take Control of Automating Your Mac

Take Control of High Sierra

iOS 10: A Take Control Crash Course

Take control of Apple TV, Second Edition

Take Control of Parallels Desktop 12





---August 11, 2004

Hi. Is there anyone who wants to let me know why the FIFO is useful when getting data with the UART? Thanks in advance. --Guest




---August 11, 2004

It's a buffer that allows the cpu the luxury of not responding to every single incoming character. Basically, at high speeds, the characters come too quickly for the cpu to guarantee that it won't be busy doing something else when the serial port gets the bytes. The buffer stores the characters.


--TonyLawrence





Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





Beware of bugs in the above code; I have only proved it correct, not tried it. (Donald Knuth)




Linux posts

Troubleshooting posts


This post tagged:

FAQ

Serial



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode