home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / COMP.FAX < prev    next >
Text File  |  1994-12-03  |  7KB  |  173 lines

  1. Setting up COM 3 and COM 4           (CP 3/15/94
  2.  
  3.  
  4. OS2COMP.FAX                             SETTING UP COM 3 & COM 4
  5.  
  6.  
  7.  
  8.         Setting COM PORT Interrupt Request (IRQ) Levels
  9.  
  10. The following information will help you determine what IRQ
  11. settings you can use for COM3 or COM4 port adapters to avoid
  12. shared interrupts.
  13.  
  14. On an ISA machine there are a total of 15 IRQ levels available.
  15. Many of these are already being used.  Most are already in use
  16. because they are the standard settings for the common devices.
  17. These standard setings are as follows:
  18.  
  19.     IRQ LEVEL         DEVICE ASSOCIATED
  20.         0               System Timer
  21.  
  22.         1               Keyboard
  23.  
  24.         2               Secondary Iterrupt Controller (see note)
  25.  
  26.         3               COM2 (Serial Communications Port 2)
  27.  
  28.         4               COM1 (Serial Communications Port 1)
  29.  
  30.         5               LPT2 (Parallel Port 2)
  31.  
  32.         6               Diskette
  33.  
  34.         7               LPT1 (Parallel Port 1)
  35.  
  36.         8               Real-time Clock
  37.  
  38.         9               open
  39.  
  40.        10               open
  41.  
  42.        11               open
  43.  
  44.        12               Auxiliary Port (Mouse)
  45.  
  46.        13               Math Coprocessor
  47.  
  48.        14               Hard Disk
  49.  
  50.        15               open
  51.  
  52. NOTE:  On the IBM-AT (ISA bus), the IRQ9 pin is idential with the
  53.        IRQ2 pin on the original IBM-PC.  If you have an earlier,
  54.        8-bit adapter whose documentation states that it uses
  55.        IRQ2, be aware that this will actually be interpreted as
  56.        IRQ9 when plugged into the 16-bit ISA bus.
  57.  
  58. The IRQ levels shown as open have no established, standardized
  59. use.  When setting the IRQ values on your COM3 or COM4 ports, you
  60. are likely to find these levels available to use without conflict
  61. with some other adapter.  Furthermore, if you don't have two
  62. parallel ports installed, IRQ5 might be usable for some other
  63. purpose, such as COM3 or COM4.  Be cautious about doing this
  64. because it might cause a problems later if you decide to install
  65. a second parallel port.  In addition, some other nonstandard
  66. device might be using IRQ5.
  67.  
  68.  
  69.  
  70.                    Enabling COM Ports
  71.  
  72.  
  73. The original ISA computer (the IBM Personal Computer AT*) allows
  74. for the definition of up to four serial communications ports.
  75. However, there has never been any hardware architectural standard
  76. that defined the I/O port addresses or IRQ lines associated with
  77. communication ports 3 and 4.
  78.  
  79. Over the years, a convention has developed that places the port
  80. addresses for COM3 and COM4 at 03E8 and 02E8 respectively.  This
  81. is generally accepted convention, but not a standard.  CHECK THE
  82. DOCUMENTATION AND THE SETTINGS OF THE ADAPTERS IN YOUR SYSTEM TO
  83. VERIFY YOUR HARDWARE ENVIRONMENT.
  84.  
  85. After you have checked and set the I/o and IRQ values on your COM
  86. ports or internal modems, you must add this information to the
  87. communications device-driver (COM.SYS) statement in the
  88. CONFIG.SYS file.
  89.  
  90. You might also need to tell your communications program where the
  91. COM ports are.  If the program, operating system, and hardware
  92. are not in agreement, then the program will not run.
  93.  
  94. OS/2 COM ports do not need to be defined in sequence.  It is
  95. acceptable to have a COM4 without having a COM3.  However, DOS
  96. might have difficulty if there is a gap in the port definition.
  97. To avoid confusion for DOS, you can define COM ports that do not
  98. have any physical adapters attached in the COM.SYS statement.
  99. These substitute definitions will serve as placeholders.  COM1
  100. and COM2 are assumed to have standard values and do not need to
  101. be explicitly set up unless you want to set some nonstandard
  102. values to accomodate your particular configuration.
  103.  
  104. The following parameter needs to be specified for COM3 and/or
  105. COM4 on ISA/EISA bus systems.  Micro-Channel bus systems do not
  106. need to specify this parameter unless the system has a COM port
  107. with a nonstandard COM port address or non-standard IRQ.
  108.  
  109. To enable COM3 or COM4, place the following in the CONFIG.SYS
  110. file:
  111.            DEVICE=X:\OS2\COM.SYS (n,x,i,s)
  112.  
  113.   where:   X = The drive where OS/2 is installed
  114.  
  115.            n = The communication port number (1,2,3,4).
  116.  
  117.            a = The communication port I/O address in hex (for
  118.                example, 03E8 02E8, 2320).
  119.  
  120.            i = The IRQ level.Valid settings are 1 to 15 (decimal)
  121.  
  122.            s = The spurious interrupt handling switch. Valid
  123.                settings are D or I. The D setting uninstalls the
  124.                COM driver if more than 1000 spurious interrupts
  125.                come in consecutively.  The I setting ignores the
  126.                spurious interrupt. This setting is optional.
  127.  
  128. For example, to install COM3 at address 03E8 on IRQ5 (assuming
  129. that OS/2 is installed on drive C):
  130.  
  131.                DEVICE=C:\OS2\COM.SYS (3,03E8,5)
  132.  
  133. The I/O address and IRQ level should be noted in the
  134. documentation that came with your adapter.  Either or both might
  135. be fixed values or can be set to a range of values via jumpers or
  136. switches.  In some cases you might find that the values are fixed
  137. or that the range of settings available to you is insufficient to
  138. avoid the sharing conflict.  In that case, you must purchase a
  139. different, more versatile adapter or accept that you cannot use
  140. both adapters at the same time.
  141.  
  142. You may read this and more detailed information on Pgs.  375 -
  143. 383 in the OS/2 2.1 Using the Operating System Guide.
  144.  
  145.  
  146.  
  147.  
  148. -----------------------------------------------------------------
  149. DISCLAIMER:  The information contained in this document is
  150. distributed "AS IS" without any warranties of any kind either
  151. express or implied.  IBM will not be responsible for any direct,
  152. incidental, consequential, special or indirect damages.  IBM
  153. EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTY OF MERCHANTABILITY AND
  154. ANY IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.
  155.  
  156. The use of this information or the implementation of any of these
  157. techniques is the sole responsibility of the customer and depends
  158. on the customer's ability to evaluate and integrate this
  159. information or implementation into the customer's operational
  160. environment.
  161. ------------------------------------------------------------------
  162. BOCA CBRX TEAM - 02/94
  163. If you have any comments or suggestions concerning our Faxes,
  164. please send a note to:  IBM Corporation
  165.                         Boca CBRX Team
  166.                         P.O.  Box 1328
  167.                         Zip 1026
  168.                         Boca Raton, FL 33429
  169.  
  170.  
  171.  
  172. 12/31/99
  173.