home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / MOUSE / WHTPRT38.ZIP / WHTPRT38.DOC < prev   
Encoding:
Text File  |  1990-12-08  |  5.8 KB  |  122 lines

  1.                            WHATPORT.COM 
  2.  
  3.                            Version 3.8 
  4.                          December 8, 1990 
  5.  
  6.                 For detecting installed serial ports, 
  7.              type of mouse, and potential IRQ conflicts
  8.  
  9.             Copyright 1989, 1990 Life Sciences Software 
  10.                          812 Vista Drive 
  11.                      Camano, Washington 98292 
  12.  
  13.  
  14. AUTHOR:  Pete Petrakis (CIS 76555,1175)
  15.  
  16.  
  17. IMPROVEMENTS IN THIS VERSION:
  18.  
  19.     Version 3.8 of WhatPort is essentially identical to version 3.7.
  20.     It's just smaller and the screen and document reflect my change
  21.     of address.  This version and its predecessor correct a flaw in
  22.     version 3.6 that prevented detection of COM4 on a PS/2 system.
  23.     Versions prior to 3.7 should therefore be discarded.  I thank
  24.     Jim Luhman for testing the corrected program on a PS/2 with four
  25.     COM ports installed and verifying that it can detect them all.
  26.  
  27.  
  28. DESCRIPTION: 
  29.  
  30.     This program detects what serial ports (COM1-COM4) are installed 
  31.     in a standard (PC, XT, AT) or PS/2 system.  The type of mouse, if
  32.     present, is also shown (serial, bus, InPort, PS/2, HP) together with
  33.     the interrupt request (IRQ) line it's using (unless it's a PS/2).
  34.     The program warns of potential IRQ line conflicts between the
  35.     mouse and serial ports.  In the case of PS/2 computers, where
  36.     there should be no possibility of conflict between a PS/2 mouse
  37.     and a serial port, WHATPORT only reports the presence of the
  38.     PS/2 mouse and the serial ports that it finds installed (up to
  39.     COM4).
  40.  
  41.  
  42. PRINCIPLE:
  43.  
  44.     Because standard PCs have only two IRQ lines for serial ports,
  45.     COM3 must share COM1's IRQ line and COM4 must share COM2's 
  46.     IRQ line.  Unfortunately, two devices using the same IRQ 
  47.     line can't be active at the same time.  COM3 can't be used for 
  48.     a printer or modem if a serial mouse is active on COM1, for 
  49.     example.  Likewise, COM4 can't be used if a serial mouse is 
  50.     active on COM2.  In other words, if you have four COM 
  51.     ports and a mouse is attached to one of them, you do not 
  52.     have three COM ports available for other devices, you only 
  53.     have two.  The COM port that shares the IRQ line being 
  54.     used by the mouse is not usable.  WHATPORT detects and
  55.     reports such conflicts.
  56.  
  57.     The following table shows what ports are available for other 
  58.     devices in a PC, XT, or AT when a serial port mouse is present
  59.     on a multiple-port system:
  60.  
  61.        Serial port mouse on     Ports available for other devices 
  62.        _____________________    _________________________________
  63.         COM1 or COM3 (IRQ4)          COM2 or COM4 (IRQ3) 
  64.         COM2 or COM4 (IRQ3)          COM1 or COM3 (IRQ4) 
  65.  
  66.     Conflicts with serial ports are also possible in the case of a
  67.     bus mouse.  For example, if a bus mouse is configured to use
  68.     IRQ3, there will be a conflict with both COM2 and COM4.  If it
  69.     is configured to use IRQ4, there will be a conflict with both
  70.     COM1 and COM3.  WHATPORT also detects and reports these conditions
  71.     so a different IRQ can be selected for the bus mouse.
  72.  
  73.     The PS/2 has a different arrangement.  COM1 in a PS/2 uses IRQ4,
  74.     and COM2, COM3, and COM4 share IRQ3.  There should not be any IRQ
  75.     conflicts with a PS/2 mouse in a PS/2 system since the PS/2 mouse
  76.     has its own port and does not use either IRQ3 or IRQ4.  However, it
  77.     seems theoretically possible that someone could attach an ordinary 
  78.     (non-PS/2) serial or bus mouse to a PS/2 machine, in which case
  79.     there could be IRQ conflicts.  With that kind of setup, a bus mouse
  80.     using IRQ3 could make three serial ports (COM2, COM3, and COM4)
  81.     unusable on a PS/2.
  82.     
  83.  
  84. HOW TO USE THE PROGRAM:
  85.  
  86.     Just run it and read the results.  Adjustment for color or
  87.     monochrome display is automatic, but monochrome can be forced
  88.     by putting M on the command line.
  89.     
  90.     Some special considerations apply in the case of PS/2 systems, 
  91.     because the port addresses they use for COM3 and COM4 are different
  92.     from those in PCs, XTs, and ATs.  Version 3.8 of WHATPORT should
  93.     automatically detect the presence of an IBM PS/2 system and check
  94.     the right port addresses since it uses a standard interrupt for
  95.     testing the system type (INT 15h, function C0h).  It is not certain,
  96.     however, that this testing feature will work the same way with clones
  97.     of the IBM PS/2.  For this reason the program also allows you to
  98.     declare the presence of a PS/2 system by means of a command line
  99.     switch.  To declare a PS/2 simply type WHATPORT PS2 (or WHATPORT PS/2)
  100.     at the DOS prompt.  You probably won't need to do that, however.
  101.  
  102.     The good news is that if a PS/2 mouse is installed you'll never need a
  103.     command line switch to tell the program you have that kind of system.
  104.     The program knows a PS/2 mouse when it sees one, and the detection
  105.     of that mouse is itself an adequate test for a PS/2 system (no other
  106.     type of system could have such a mouse).  Thus you'll need to be
  107.     concerned (mildly) about ability to detect a PS/2 system only if there
  108.     is no PS/2 mouse installed.
  109.  
  110.  
  111. DISTRIBUTION: 
  112.  
  113.     WHATPORT.COM and this document are provided free by Life Sciences
  114.     Editorial Services, Annapolis, Maryland.  They may be copied and
  115.     distributed promiscuously provided no money is charged for them,
  116.     they are not modified, and they are not separated.  Although the
  117.     program has been extensively tested, Pete Petrakis makes no warranty
  118.     concerning its usefulness on all systems and he accepts no
  119.     responsibility or liability for any mishap resulting from its use.
  120.  
  121.                                              Pete Petrakis
  122.                                              Annapolis, Maryland