home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 14 Text / 14-Text.zip / ATBUS.ZIP / ATBUS.TXT
Text File  |  1992-11-27  |  6KB  |  135 lines

  1. Information regarding interrupts and OS/2 2.0 in AT BUS systems
  2. ---------------------------------------------------------------
  3. ...
  4. Under OS/2 interrupts can not be shared. Results
  5. are unpredictable if interrupts are shared. Sharing
  6. interrupts is not a problem under DOS. It is possible
  7. for devices that are sharing interrupts to work perfectly
  8. under DOS and have problems under OS/2.
  9. ...
  10. On an ISA machine there are a total of 15 IRQ levels
  11. available.  The standard settings, in order of priority,
  12. is as follows:
  13. ...
  14. ...
  15.      IRQ#   Device Associated
  16.      ----   -----------------
  17.  
  18.       0     System Timer
  19.       1     Keyboard
  20.       2     Secondary Interrupt Controller  (see note)
  21.        8    Realtime Clock
  22.        9    --- (see note)
  23.       10    --- free
  24.       11    --- free
  25.       12    --- free - reserved for aux dev
  26.       13    Math Coprocessor
  27.       14    Hard Disk
  28.       15    --- free
  29.      3      COM2 (Serial Communications Port #2)
  30.      4      COM1 (Serial Communications Port #1)
  31.      5      LPT2 (Parallel Printer Port #2 - add. 278)
  32.      6      Diskette
  33.      7      LPT1 (Parallel Printer Port #1 - add. 3BC and 378)
  34. ...
  35. ...
  36. (Note:  On the IBM-AT (ISA bus) the IRQ9 pin is identical
  37.  with the IRQ22 pin on the original IBM-PC.  If you have an
  38.  older, 8-bit adapter whose documentation states that it
  39.  uses IRQ2 then be aware that this will actually be seen as
  40.  IRQ9 when plugged into the 16-bit ISA bus.)
  41. ...
  42. ...
  43. If multiple hardware adapters of any kind (not just
  44. communications) are using the same IRQ level then the
  45. effect on your computer will be unpredictable.  However, with
  46. single tasking systems like DOS, the two adapters which are
  47. sharing the interrupt may never cause any problems since they
  48. may never be in use at the same time.
  49. ...
  50. OS/2, however, presents a different set of problems.  If we
  51. have two, three or four adapters, the probability is now high
  52. that they are used at the same time.  If some of adapters had
  53. been set up using shared interrupts then the scene is set for
  54. mysterious things to occur in OS/2.
  55. ...
  56. OS/2 can, however, detect that an interrupt line is shared
  57. and will disallow the simultaneous use.  Assume that COM1 and
  58. COM3 were sharing IRQ4 (a fairly common real situation).  If
  59. we tried to use both COM ports at the same time OS/2 would
  60. refuse to allow the second one to start.  A well written OS/2
  61. communications program would see and report the error from
  62. OS/2 that the port could not be opened.  A DOS application,
  63. however, will likely be unprepared to respond to this strange
  64. situation and it may simply hang there waiting forever for
  65. the port that will never open.
  66. ...
  67. The solution for all of this is to make sure that all of your
  68. hardware adapters have their own unique I/O addresses and IRQ
  69. assignments.  Unfortunately, on an ISA machine, OS/2 has no
  70. way to query the computer to find out what these settings
  71. are.  Therefore, after checking and setting the adapters
  72. according to the instruction manuals you must also tell OS/2
  73. what you've done by placing explicit information into the
  74. CONFIG.SYS file.
  75. ...
  76. ...
  77. To summarize:
  78. -------------
  79. ...
  80.         *) Even though there is some flexibility for Printer &
  81.            Comm. port assignment try to stick to the standard
  82.            assignment as shown in IRQ table at the beginning
  83.            of document.
  84. ...
  85.         *) Available interrupts, in order of priority, are:
  86.            IRQ10, IRQ11, IRQ12, IRQ15, IRQ3 (if not used
  87.            for COM2), and IRQ5 (if not used for LPT2).
  88. ...
  89.         *) Addresses and interrupts can be assigned in OS2
  90.            to comm ports as described in info apar II06069.
  91.            Standard assigment is as follows:
  92.                 COM1 - 3F8 - IRQ 4 (default)
  93.                 COM2 - 2F8 - IRQ 3 (default)
  94.                 COM3 - 3E8
  95.                 COM4 - 2E8
  96.            There is no OS/2 default setting for COM3 and
  97.            COM4. It must be specified by the device=com.sys
  98.            statement in config.sys.
  99. ...
  100.         *) Printer port addresses and IRQ levels are hardcoded
  101.            in OS/2 as follows:
  102.                 3BC and 378     ==> IRQ7 (LPT1)
  103.                 278             ==> IRQ5 (LPT2)
  104.            Unlike the the comm ports, where the addresses
  105.            and the interrupts can be modified by the
  106.            device=com.sys in config.sys, the printer port
  107.            addresses and IRQ shown above are fixed.
  108.            OS2 assigns LPT1 to the highest printer port address
  109.            being used. The printer address is specified in the
  110.            printer adapter board.
  111.            With OS/2 you can not use both addresses 3BC and 378
  112.            as printer port addresses. Both LPTs would be sharing
  113.            IRQ7.
  114.            Unlike DOS, OS/2 uses interrupts for printing.
  115.            The interrupt is triggered by a signal line from
  116.            the printer, ACK. If the IRQs are not configured
  117.            correctly, or the printer cable is missing the ACK
  118.            line the printer may work under DOS and
  119.            have problems under OS/2.
  120. ...
  121.            An example of address and interrupt assignment is
  122.            follows:
  123.                    COM1 - 3F8,IRQ4
  124.                    COM2 - 2F8,IRQ3
  125.                    COM3 - 3E8,IRQ5 (IRQ5 not being used by lpt2)
  126.                    COM4 - 2E8,IRQ10
  127. ...
  128.                    LPT1 - 378,IRQ7
  129. ...
  130.         *) If interrupt devices are occasionally losing data,
  131.            try moving to a higher priority unused interrupt.
  132.  
  133.  
  134.  
  135.