home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / info / faq / os2_20 / os2help / comsys.fax < prev    next >
Encoding:
Text File  |  1992-09-17  |  8.2 KB  |  175 lines

  1.  
  2.   INTERRUPT PROBLEMS ON AN ISA SYSTEM
  3.  
  4.   On an ISA system, having a shared interrupt-request line can cause problems.
  5.   ISA systems have what are called "edge triggered" interrupts whereas Micro
  6.   Channel and EISA systems use "level sensitive" interrupts.  "Edge triggered"
  7.   interrupts can only be sensed for a very short period of time.  If a second
  8.   interrupt arrives from another adapter while the first interrupt is still
  9.   being processed, the second interrupt will be lost.  In your computer system,
  10.   this situation can lead to various difficulties such as printers that do not
  11.   seem to print smoothly or reliably, or communications sessions where some
  12.   characters are getting lost.
  13.  
  14.   However, with single-tasking systems such as DOS, the two adapters that are
  15.   sharing the interrupt might never cause any real problems because they might
  16.   never be in use at the same time.  OS/2 2.0, however, presents a different
  17.   set of problems.  If you have multiple serial communications adapters, there
  18.   is a greater probability that you might try to use two or more of them at the
  19.   same time.  If some of them have previously been set up using shared
  20.   interrupts, problems can occur that probably didn't happen in DOS.
  21.  
  22.   OS/2 2.0 can detect that an interrupt line is shared and will not allow
  23.   simultaneous use.  Assume that COM1 and COM3 are sharing Interrupt Request
  24.   line 4 (IRQ4).  If you try to use both COM ports at the same time, the OS/2
  25.   operating system will not allow the second one to start.  A well-written OS/2
  26.   communications program will recognize that the port cannot be opened and an
  27.   error message will be displayed.  A DOS application, however, is unprepared
  28.   to respond to this unfamiliar situation.  It will probably suspend, waiting
  29.   for the port that will not open.
  30.  
  31.   Another potential source of trouble is having multiple hardware adapters that
  32.   are sharing the same I/O address.  The various hardware adapters in your
  33.   computer must have their own addresses.  Consider what might happen, for
  34.   example, if the commands that were meant for your printer were instead routed
  35.   to your disk drive.
  36.  
  37.   The solution for all of these problems is to ensure that all your hardware
  38.   adapters have their own unique I/O addresses and IRQ assignments.
  39.  
  40.  
  41.   COM3 OR COM4 SUPPORT ON AN ISA SYSTEM
  42.  
  43.   The original ISA machine (the IBM PC-AT) allowed for the definition of up to
  44.   four serial communication ports.  However, there has never been any hardware
  45.   architectural standard that defined the I/O port addresses or Interrupt
  46.   Request (IRQ) lines associated with communication ports 3 or 4.
  47.  
  48.   Over the years, a convention has developed that places the port addresses for
  49.   COM3 and COM4 at 03E8 and 02E8 respectively.  This is a generally accepted
  50.   convention, but not a standard.  Check the documentation and the settings of
  51.   the adapters in your system to verify your hardware environment.
  52.  
  53.   After you have checked and set the I/O and IRQ values on your COM ports or
  54.   internal modems, you must add this information to the communications
  55.   device-driver (COM.SYS) statement in the CONFIG.SYS file.
  56.  
  57.   You might also need to tell your communications application software where
  58.   the COM ports are.  ProComm software, for example, has a configuration screen
  59.   that enables you to specify these settings.  If the application, operating
  60.   system, and hardware are not in agreement, then the application will not run.
  61.  
  62.   OS/2 COM ports do not need to be defined in sequence.  It is acceptable to
  63.   have a COM4 without having a COM3.  DOS, however, might have difficulty if
  64.   there is a gap in the port definition.  To avoid confusion for DOS, you can
  65.   define COM ports that do not have any physical adapters attached in the
  66.   COM.SYS statement.  These substitute definitions will serve as placeholders.
  67.   COM1 and COM2 are assumed to have standard values and do not need to be
  68.   explicitly set up unless you want to set some non-standard values to
  69.   accommodate your particular configuration.
  70.  
  71.   To enable COM3 or COM4 on an ISA system, place the following in the
  72.   CONFIG.SYS file:
  73.  
  74.     DEVICE=X:\OS2\COM.SYS (n,a,i) (n,a,i)
  75.  
  76.   where
  77.  
  78.    X = the drive where OS/2 is installed
  79.    n = the COM port that you are attempting to access
  80.    a = communications port I/O address (03E8, 02E8, for example)
  81.    i = IRQ level, which is usually a jumper setting on the I/O adapter
  82.  
  83.   For example, to specify that COM3 is at address 03E8 on IRQ5 and that COM4 is
  84.   at address 02E8 on IRQ10, use the following statement (assuming that OS/2 is
  85.   installed on drive C):
  86.  
  87.           DEVICE=C:\OS2\COM.SYS (3,03E8,5) (4,02E8,10)
  88.  
  89.   The I/O address and IRQ level should be noted in the documentation that came
  90.   with your adapter.  Either or both might be fixed values or can be set to a
  91.   range of values via jumpers or switches.  In some cases you might find that
  92.   the values are fixed or that the range of settings available to you is
  93.   insufficient to avoid the sharing conflict.  In that case, you must purchase
  94.   a different, more versatile adapter or accept that you cannot use both
  95.   adapters at the same time.
  96.  
  97.  
  98.   SETTING THE INTERRUPT REQUEST (IRQ) LEVEL ON AN ISA SYSTEM
  99.  
  100.   The following information will help you determine what IRQ settings you can
  101.   use for COM3 or COM4 port adapters to avoid shared interrupts.
  102.  
  103.   On an ISA machine there are a total of 15 IRQ levels available.  Many of
  104.   these are already being used.  Most are already in use because they are the
  105.   the standard settings for the more common devices.  These standard settings
  106.   are as follows:
  107.  
  108.   IRQ LEVEL      DEVICE ASSOCIATED
  109.  
  110.   0              System Timer
  111.  
  112.   1              Keyboard
  113.  
  114.   2              Secondary Interrupt Controller  (see note)
  115.  
  116.   3              COM2 (Serial Communications Port 2)
  117.  
  118.   4              COM1 (Serial Communications Port 1)
  119.  
  120.   5              LPT2 (Parallel Port 2)
  121.  
  122.   6              Diskette
  123.  
  124.   7              LPT1 (Parallel Port 1)
  125.  
  126.   8              Realtime Clock
  127.  
  128.   9              open
  129.  
  130.   10             open
  131.  
  132.   11             open
  133.  
  134.   12             open
  135.  
  136.   13             Math Coprocessor
  137.  
  138.   14             Hard Disk
  139.  
  140.   15             open
  141.  
  142.   NOTE:  On the IBM-AT (ISA bus), the IRQ9 pin is identical with the IRQ2 pin
  143.          on the original IBM-PC.  If you have an older, 8-bit adapter whose
  144.          documentation states that it uses IRQ2, be aware that this will
  145.          actually be interpreted as IRQ9 when plugged into the 16-bit ISA bus.
  146.  
  147.   The IRQ levels shown as "open" have no established, standardized use.  When
  148.   setting the IRQ values on your COM3 or COM4 ports, you are likely to find
  149.   these levels available to use without conflict with some other adapter.
  150.   Furthermore, if you don't have two parallel ports installed, IRQ5 might be
  151.   usable for some other purpose, such as COM3 or COM4.  Be cautious about doing
  152.   this because it might cause a problem later if you decide to install a second
  153.   parallel port.  In addition, some other non-standard device might already be
  154.   using IRQ5.
  155.  
  156.   When trying to manage the IRQ levels of your various hardware adapters to
  157.   avoid conflicts, you may find that your 8-bit adapters cause problems.
  158.   Except for IRQ9, only 16-bit adapters are configurable to use IRQ levels
  159.   higher than 7.  A glance at the IRQ table will also show that the
  160.   low-numbered IRQ lines already have some standard function assigned.  It
  161.  
  162.   might be that your only alternative for avoiding some IRQ conflicts is to
  163.   purchase a more versatile 16-bit adapter.
  164.  
  165.   If you have non-standard 8-bit adapters, be especially careful of interrupt
  166.   conflicts.  For example, the SoundBlaster adapter is configured at the
  167.   factory to use IRQ7.  IRQ7, however, is the standard assignment for LPT1, the
  168.   first printer port.  This conflict might not be apparent with DOS because DOS
  169.   printing typically does not use the interrupt line.  OS/2 2.0, however,
  170.   requires it, and the hidden conflict can become the source of printing
  171.   problems.  It is also fairly common to discover that the interrupt feature on
  172.   your parallel port adapter does not work.  In DOS, this might not have any
  173.   effect.  In OS/2 2.0, however, your printer might be very erratic or not work
  174.   at all.
  175.