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

  1. INFORMATION REGARDING INTERRUPTS AND OS/2 2.0 IN AT BUS SYSTEMS
  2. ---------------------------------------------------------------
  3.  
  4.   INTERRUPT PROBLEMS ON AN ISA SYSTEM
  5.  
  6.   On an ISA system, having a shared interrupt-request line can cause problems.
  7.   ISA systems have what are called "edge triggered" interrupts whereas Micro
  8.   Channel and EISA systems use "level sensitive" interrupts.  "Edge triggered"
  9.   interrupts can only be sensed for a very short period of time.  If a second
  10.   interrupt arrives from another adapter while the first interrupt is still
  11.   being processed, the second interrupt will be lost.  In your computer system,
  12.   this situation can lead to various difficulties such as printers that do not
  13.   seem to print smoothly or reliably, or communications sessions where some
  14.   characters are getting lost.
  15.  
  16.   However, with single-tasking systems such as DOS, the two adapters that are
  17.   sharing the interrupt might never cause any real problems because they might
  18.   never be in use at the same time.  OS/2 2.0, however, presents a different
  19.   set of problems.  If you have multiple serial communications adapters, there
  20.   is a greater probability that you might try to use two or more of them at the
  21.   same time.  If some of them have previously been set up using shared
  22.   interrupts, problems can occur that probably didn't happen in DOS.
  23.  
  24.   OS/2 2.0 can detect that an interrupt line is shared and will not allow
  25.   simultaneous use.  Assume that COM1 and COM3 are sharing Interrupt Request
  26.   line 4 (IRQ4).  If you try to use both COM ports at the same time, the OS/2
  27.   operating system will not allow the second one to start.  A well-written OS/2
  28.   communications program will recognize that the port cannot be opened and an
  29.   error message will be displayed.  A DOS application, however, is unprepared
  30.   to respond to this unfamiliar situation.  It will probably suspend, waiting
  31.   for the port that will not open.
  32.  
  33.   Another potential source of trouble is having multiple hardware adapters that
  34.   are sharing the same I/O address.  The various hardware adapters in your
  35.   computer must have their own addresses.  Consider what might happen, for
  36.   example, if the commands that were meant for your printer were instead routed
  37.   to your disk drive.
  38.  
  39.   The solution for all of these problems is to ensure that all your hardware
  40.   adapters have their own unique I/O addresses and IRQ assignments.
  41.  
  42.  
  43.   COM3 OR COM4 SUPPORT ON AN ISA SYSTEM
  44.  
  45.   The original ISA machine (the IBM PC-AT) allowed for the definition of up to
  46.   four serial communication ports.  However, there has never been any hardware
  47.   architectural standard that defined the I/O port addresses or Interrupt
  48.   Request (IRQ) lines associated with communication ports 3 or 4.
  49.  
  50.   Over the years, a convention has developed that places the port addresses for
  51.   COM3 and COM4 at 03E8 and 02E8 respectively.  This is a generally accepted
  52.   convention, but not a standard.  Check the documentation and the settings of
  53.   the adapters in your system to verify your hardware environment.
  54.  
  55.   After you have checked and set the I/O and IRQ values on your COM ports or
  56.   internal modems, you must add this information to the communications
  57.   device-driver (COM.SYS) statement in the CONFIG.SYS file.
  58.  
  59.   You might also need to tell your communications application software where
  60.   the COM ports are.  ProComm software, for example, has a configuration screen
  61.   that enables you to specify these settings.  If the application, operating
  62.   system, and hardware are not in agreement, then the application will not run.
  63.  
  64.   OS/2 COM ports do not need to be defined in sequence.  It is acceptable to
  65.   have a COM4 without having a COM3.  DOS, however, might have difficulty if
  66.   there is a gap in the port definition.  To avoid confusion for DOS, you can
  67.   define COM ports that do not have any physical adapters attached in the
  68.   COM.SYS statement.  These substitute definitions will serve as placeholders.
  69.   COM1 and COM2 are assumed to have standard values and do not need to be
  70.   explicitly set up unless you want to set some non-standard values to
  71.   accommodate your particular configuration.
  72.  
  73.   To enable COM3 or COM4 on an ISA system, place the following in the
  74.   CONFIG.SYS file:
  75.  
  76.     DEVICE=X:\OS2\COM.SYS (n,a,i) (n,a,i)
  77.  
  78.   where
  79.  
  80.    X = the drive where OS/2 is installed
  81.    n = the COM port that you are attempting to access
  82.    a = communications port I/O address (03E8, 02E8, for example)
  83.    i = IRQ level, which is usually a jumper setting on the I/O adapter
  84.  
  85.   For example, to specify that COM3 is at address 03E8 on IRQ5 and that COM4 is
  86.   at address 02E8 on IRQ10, use the following statement (assuming that OS/2 is
  87.   installed on drive C):
  88.  
  89.           DEVICE=C:\OS2\COM.SYS (3,03E8,5) (4,02E8,10)
  90.  
  91.   The I/O address and IRQ level should be noted in the documentation that came
  92.   with your adapter.  Either or both might be fixed values or can be set to a
  93.   range of values via jumpers or switches.  In some cases you might find that
  94.   the values are fixed or that the range of settings available to you is
  95.   insufficient to avoid the sharing conflict.  In that case, you must purchase
  96.   a different, more versatile adapter or accept that you cannot use both
  97.   adapters at the same time.
  98.  
  99.  
  100.   SETTING THE INTERRUPT REQUEST (IRQ) LEVEL ON AN ISA SYSTEM
  101.  
  102.   The following information will help you determine what IRQ settings you can
  103.   use for COM3 or COM4 port adapters to avoid shared interrupts.
  104.  
  105.   On an ISA machine there are a total of 15 IRQ levels available.  Many of
  106.   these are already being used.  Most are already in use because they are the
  107.   the standard settings for the more common devices.  These standard settings
  108.   are as follows:
  109.  
  110.   IRQ LEVEL      DEVICE ASSOCIATED
  111.  
  112.   0              System Timer
  113.  
  114.   1              Keyboard
  115.  
  116.   2              Secondary Interrupt Controller  (see note)
  117.  
  118.   3              COM2 (Serial Communications Port 2)
  119.  
  120.   4              COM1 (Serial Communications Port 1)
  121.  
  122.   5              LPT2 (Parallel Port 2)
  123.  
  124.   6              Diskette
  125.  
  126.   7              LPT1 (Parallel Port 1)
  127.  
  128.   8              Realtime Clock
  129.  
  130.   9              open
  131.  
  132.   10             open
  133.  
  134.   11             open
  135.  
  136.   12             open
  137.  
  138.   13             Math Coprocessor
  139.  
  140.   14             Hard Disk
  141.  
  142.   15             open
  143.  
  144.   NOTE:  On the IBM-AT (ISA bus), the IRQ9 pin is identical with the IRQ2 pin
  145.          on the original IBM-PC.  If you have an older, 8-bit adapter whose
  146.          documentation states that it uses IRQ2, be aware that this will
  147.          actually be interpreted as IRQ9 when plugged into the 16-bit ISA bus.
  148.  
  149.   The IRQ levels shown as "open" have no established, standardized use.  When
  150.   setting the IRQ values on your COM3 or COM4 ports, you are likely to find
  151.   these levels available to use without conflict with some other adapter.
  152.   Furthermore, if you don't have two parallel ports installed, IRQ5 might be
  153.   usable for some other purpose, such as COM3 or COM4.  Be cautious about doing
  154.   this because it might cause a problem later if you decide to install a second
  155.   parallel port.  In addition, some other non-standard device might already be
  156.   using IRQ5.
  157.  
  158.   When trying to manage the IRQ levels of your various hardware adapters to
  159.   avoid conflicts, you may find that your 8-bit adapters cause problems.
  160.   Except for IRQ9, only 16-bit adapters are configurable to use IRQ levels
  161.   higher than 7.  A glance at the IRQ table will also show that the
  162.   low-numbered IRQ lines already have some standard function assigned.  It
  163.  
  164.   might be that your only alternative for avoiding some IRQ conflicts is to
  165.   purchase a more versatile 16-bit adapter.
  166.  
  167.   If you have non-standard 8-bit adapters, be especially careful of interrupt
  168.   conflicts.  For example, the SoundBlaster adapter is configured at the
  169.   factory to use IRQ7.  IRQ7, however, is the standard assignment for LPT1, the
  170.   first printer port.  This conflict might not be apparent with DOS because DOS
  171.   printing typically does not use the interrupt line.  OS/2 2.0, however,
  172.   requires it, and the hidden conflict can become the source of printing
  173.   problems.  It is also fairly common to discover that the interrupt feature on
  174.   your parallel port adapter does not work.  In DOS, this might not have any
  175.   effect.  In OS/2 2.0, however, your printer might be very erratic or not work
  176.   at all.
  177.  
  178.   Under OS/2 interrupts can not be shared.  Results are unpredictable if
  179.   interrupts are shared.  Sharing interrupts is not a problem under DOS.  It is
  180.   possible for devices that are sharing interrupts to work perfectly under DOS
  181.   and have problems under OS/2.
  182.  
  183.   (Note:  On the IBM-AT (ISA bus) the IRQ9 pin is identical with the IRQ22 pin
  184.   on the original IBM-PC.  If you have an older, 8-bit adapter whose
  185.   documentation states that it uses IRQ2 then be aware that this will actually
  186.   be seen as IRQ9 when plugged into the 16-bit ISA bus.)
  187.  
  188.   If multiple hardware adapters of any kind (not just communications) are using
  189.   the same IRQ level then the effect on your computer will be unpredictable.
  190.   However, with single tasking systems like DOS, the two adapters which are
  191.   sharing the interrupt may never cause any problems since they may never be in
  192.   use at the same time.
  193.  
  194.   OS/2, however, presents a different set of problems.  If we have two, three or
  195.   four adapters, the probability is now high that they are used at the same
  196.   time.  If some of adapters had been set up using shared interrupts then the
  197.   scene is set for mysterious things to occur in OS/2.
  198.  
  199.   OS/2 can, however, detect that an interrupt line is shared and will disallow
  200.   the simultaneous use.  Assume that COM1 and COM3 were sharing IRQ4 (a fairly
  201.   common real situation).  If we tried to use both COM ports at the same time
  202.   OS/2 would refuse to allow the second one to start.  A well written OS/2
  203.   communications program would see and report the error from OS/2 that the port
  204.   could not be opened.  A DOS application, however, will likely be unprepared to
  205.   respond to this strange situation and it may simply hang there waiting forever
  206.   for the port that will never open.
  207.  
  208.   The solution for all of this is to make sure that all of your hardware
  209.   adapters have their own unique I/O addresses and IRQ assignments.
  210.   Unfortunately, on an ISA machine, OS/2 has no way to query the computer to
  211.   find out what these settings are.  Therefore, after checking and setting the
  212.   adapters according to the instruction manuals you must also tell OS/2 what
  213.   you've done by placing explicit information into the CONFIG.SYS file.
  214.  
  215. TO SUMMERIZE
  216. ------------
  217.  
  218.         *) Even though there is some flexibility for Printer &
  219.            Comm. port assignment try to stick to the standard
  220.            assignment as shown in IRQ table at the beginning
  221.            of document.
  222.  
  223.         *) Available interrupts, in order of priority, are:
  224.            IRQ10, IRQ11, IRQ12, IRQ15, IRQ3 (if not used
  225.            for COM2), and IRQ5 (if not used for LPT2).
  226.  
  227.         *) Addresses and interrupts can be assigned in OS2
  228.            to comm ports as described in info apar II06069.
  229.            Standard assigment is as follows:
  230.                 COM1 - 3F8 - IRQ 4 (default)
  231.                 COM2 - 2F8 - IRQ 3 (default)
  232.                 COM3 - 3E8
  233.                 COM4 - 2E8
  234.            There is no OS/2 default setting for COM3 and
  235.            COM4. It must be specified by the device=com.sys
  236.            statement in config.sys.
  237.  
  238.         *) Printer port addresses and IRQ levels are hardcoded
  239.            in OS/2 as follows:
  240.                 3BC and 378     ==> IRQ7 (LPT1)
  241.                 278             ==> IRQ5 (LPT2)
  242.            Unlike the the comm ports, where the addresses
  243.            and the interrupts can be modified by the
  244.            device=com.sys in config.sys, the printer port
  245.            addresses and IRQ shown above are fixed.
  246.            OS2 assigns LPT1 to the highest printer port address
  247.            being used. The printer address is specified in the
  248.            printer adapter board.
  249.            With OS/2 you can not use both addresses 3BC and 378
  250.            as printer port addresses. Both LPTs would be sharing
  251.            IRQ7.
  252.            Unlike DOS, OS/2 uses interrupts for printing.
  253.            The interrupt is triggered by a signal line from
  254.            the printer, ACK. If the IRQs are not configured
  255.            correctly, or the printer cable is missing the ACK
  256.            line the printer may work under DOS and
  257.            have problems under OS/2.
  258.  
  259.            An example of address and interrupt assignment is
  260.            follows:
  261.                    COM1 - 3F8,IRQ4
  262.                    COM2 - 2F8,IRQ3
  263.                    COM3 - 3E8,IRQ5 (IRQ5 not being used by lpt2)
  264.                    COM4 - 2E8,IRQ10
  265.  
  266.                    LPT1 - 378,IRQ7
  267.  
  268.         *) If interrupt devices are occasionally losing data,
  269.            try moving to a higher priority unused interrupt.
  270. -------------------------------------------------------------------------------
  271. Thank you for calling the OS/2 2.0 Support Line.  Regarding the problem
  272. reported to the Support Line, we feel that this information may assist
  273. you in resoloving your problem.  If you still require assistance, please
  274. call 1-800-237-5511, and reference your customer number and problem (PMR)
  275. number.  Your Problem Record Number (PMR) should appear on the cover
  276. page of this faxed document.
  277.