home *** CD-ROM | disk | FTP | other *** search
/ The Unsorted BBS Collection / thegreatunsorted.tar / thegreatunsorted / texts / txtfiles_misc / 16550 < prev    next >
Text File  |  1991-03-16  |  3KB  |  50 lines

  1. What is the 16550 and how can it benefit communications?
  2. --------------------------------------------------------
  3.  
  4. The chip, formally known as the NS16550AFN chip, is the heart of your
  5. asynch board.  It is the UART chip, or Universal Asynchronous Receiver/
  6. Transmitter.
  7.  
  8. The advantage of the 16550 over the older 16450 and 8250 UARTs is that
  9. it has a 16 byte buffer on it.  Now, sixteen bytes doesn't sound like a
  10. whole heck of a lot but it is SIXTEEN TIMES the size of the buffer on
  11. the older UARTs which only had one a one byte buffer.
  12.  
  13. The advantages of the 16-byte buffer are two fold:
  14.  
  15. 1) It makes high speed communications more reliable.
  16.  
  17.    On the older chips, with their one-byte-buffer, you would lose data
  18.    if a second byte came in from the modem before the CPU had a chance
  19.    to pull the first byte out.  The 16550, with its 16-byte-buffer,
  20.    gives the CPU up to 16 chances to pull the data out before a
  21.    character is lost.
  22.  
  23.    To realize what this means you can figure that at 19200 bps you are
  24.    expecting the CPU to service the comm port 1920 times each second or
  25.    once every .0005 seconds.  If the CPU happens to take .0006 seconds
  26.    to get around to servicing the comm port then in a one-byte buffer
  27.    UART that first byte is lost.  On the 16550 chip, with 16 bytes of
  28.    buffer space, you have up to .008 seconds to service the comm port.
  29.  
  30. 2) It helps make a multitasking system more efficient.
  31.  
  32.    When PCBoard is transmitting data it has to stop the CPU and fill the
  33.    UART's transmitter buffer.  That means that if the caller in the
  34.    background is doing a directory scan his scan will take longer while
  35.    PCBoard attempts to send data out to the first caller.
  36.  
  37.    In the one-byte-buffer UARTs at 19200 bps PCBoard must stop the CPU
  38.    1920 times each second just to send data out the comm port.  With
  39.    the 16550, however, it can stuff up to 16 bytes into the buffer at
  40.    a time and therefore interrupts the CPU only 120 times each second.
  41.    That drops the performance hit on the CPU, even at high speeds, to
  42.    almost that of a 1200 to 2400 bps modem!
  43.  
  44. To top it off... the older 8250 chips were buggy, making them less
  45. reliable, and they were never designed for the high speeds that we
  46. expect out of our modems today.  The NS16550AFN, on the other hand, is
  47. designed with high bus speeds and high modem speeds in mind.  When
  48. multitasking, even at slower baud rates, the 16550 can be very helpful
  49. in providing smooth operation for the entire system.
  50.