home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / oscpirq.txt < prev    next >
Text File  |  1996-11-12  |  6KB  |  133 lines

  1. OSCPIRQ - ASSIGNING IRQ LEVELS AND ENABLING COM PORTS -
  2.           ALL OS/2 RELEASES
  3. 01/23/96
  4.  
  5. =======================================================================
  6.     Assigning IRQ Levels and Enabling COM Ports--All OS/2 Releases
  7. =======================================================================
  8.  
  9. Please Read Entire Document for Full Explanation of Procedures
  10. --------------------------------------------------------------
  11.  
  12. DESCRIPTION
  13.  
  14. This document helps you determine the IRQ settings you can use for COM3 
  15. or COM4 port adapters to avoid shared interrupts.
  16.  
  17. RESOLUTION
  18.  
  19. On an ISA computer, 15 IRQ levels are available. Most are already in 
  20. use because they are the standard settings for common devices. These 
  21. standard settings are:
  22.  
  23.        IRQ Level        Device
  24.        ---------        ------
  25.            0            System 
  26.            1            Keyboard
  27.            2            Secondary Interrupt Controller (see Note)
  28.            3            COM2 (Serial Communications Port 2)
  29.            4            COM1 (Serial Communications Port 1)
  30.            5            LPT2 (Parallel Port 2)
  31.            6            Diskette
  32.            7            LPT1 (Parallel Port 1)
  33.            8            Real-time Clock
  34.            9            Open
  35.           10            Open
  36.           11            Open
  37.           12            Auxiliary Port (Mouse)
  38.           13            Math Coprocessor
  39.           14            Hard Disk
  40.           15            Open
  41.  
  42. Note:  On the IBM AT (ISA bus), the IRQ9 pin is identical to the IRQ2
  43.        pin on the original IBM PC. If you have an earlier, 8-bit adapter
  44.        whose documentation states that it uses IRQ2, be aware that this
  45.        is actually interpreted as IRQ9 when plugged into the 16-bit ISA
  46.        bus.
  47.  
  48.        The IRQ levels shown as Open have no established, standardized
  49.        use. When setting IRQ values on your COM3 or COM4 port, you might
  50.        find these levels available to use without conflict with some
  51.        other adapter. If you do not have two parallel ports installed,
  52.        IRQ5 might be usable for another purpose, such as COM3 or COM4.
  53.        Be cautious about doing this; it might cause a problem later if
  54.        you decide to install a second parallel port. Also, another
  55.        nonstandard device might be using IRQ5.
  56.  
  57. Enabling COM Ports
  58. ------------------
  59. The original ISA computer (the IBM Personal Computer AT) allowed for 
  60. the definition of up to 4 serial communications ports. However, there 
  61. has never been any hardware architectural standard that defined the I/O 
  62. port addresses or IRQ lines associated with communication ports 3 and 4.
  63.  
  64. A convention places the port addresses for COM3 and COM4 at 03E8 and 
  65. 02E8, respectively.  This is a generally accepted convention, but not a 
  66. standard. Check the documentation and the settings of the adapters in 
  67. your system to verify your hardware environment.
  68.  
  69. After checking and setting the I/O and IRQ values on your COM ports or 
  70. internal modems, you must add this information to the communications 
  71. device-driver statement (COM.SYS) in the CONFIG.SYS file.
  72.  
  73. You might also need to tell your communications program where the COM 
  74. ports are. If the program, operating system, and hardware are not in 
  75. agreement, the program will not run.
  76.  
  77. OS/2 COM ports do not need to be defined in sequence. It is acceptable 
  78. to have a COM4 without having a COM3. However, DOS might have 
  79. difficulty if there is a gap in the port definition. To avoid confusion 
  80. for DOS, define COM ports that do not have any physical adapters 
  81. attached in the COM.SYS statement. These substitute definitions will 
  82. serve as place holders. COM1 and COM2 are assumed to have standard 
  83. values and do not need to be explicitly set up unless you want to set 
  84. some nonstandard values to accommodate your particular configuration.
  85.  
  86. The following parameter must be specified for COM3 and/or COM4 on 
  87. ISA/EISA bus systems. Micro Channel bus systems do not need to specify 
  88. this parameter unless the system has a COM port with a nonstandard COM 
  89. port address or nonstandard IRQ setting.
  90.  
  91. To enable COM3 or COM4, place following in the CONFIG.SYS file:
  92.  
  93.    DEVICE=x:*\OS2\COM.SYS (n,x,i,s)
  94.  
  95. where:
  96.    
  97.    x is the drive where OS/2 is installed
  98.  
  99.    n is the communication port number (1, 2, 3, or 4)
  100.  
  101.    a is the communication port I/O address in hexadecimal; for example,
  102.      03E8 02E8, 2320).
  103.  
  104.    i is the IRQ level. Valid settings are 1 to 15 (decimal).
  105.  
  106.    s is the spurious interrupt handling switch. Valid settings are D or
  107.      I. The D setting uninstalls COM driver if more than 1000 spurious
  108.      interrupts occur consecutively. The I setting ignores spurious
  109.      interrupts. This setting is optional.
  110.  
  111. Example: To install COM3 at address 03E8 on IRQ5 (assuming that OS/2 is
  112.          installed on drive C), use the following CONFIG.SYS statement:
  113.  
  114.              DEVICE=C:*\OS2\COM.SYS (3,03E8,5)
  115.  
  116. The I/O address and IRQ level should be noted in the documentation that 
  117. came with your adapter. Either or both might be fixed values, or you 
  118. might be able to set a range of values using jumpers or switches. In 
  119. some cases, you might find that the range of settings available to you 
  120. is insufficient to avoid the sharing conflict. In that case, you must 
  121. purchase a different, more versatile adapter, or accept the fact that 
  122. you cannot use both adapters at the same time.
  123.  
  124. ______________________________________________________________________
  125. IBM disclaims all warranties, whether express or implied, including 
  126. without limitation, warranties of fitness and merchantability with 
  127. respect to the information in this document. By furnishing this 
  128. document, IBM grants no licenses to any related patents or copyrights.  
  129. Copyright (c) 1994, 1995 IBM Corporation. Any trademarks and product 
  130. or brand names referenced in this document are the property of their 
  131. respective owners. Consult your product manuals for complete trademark 
  132. information. 
  133.