home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / LPTMON10.ZIP / LPTMON.DOC < prev   
Text File  |  1994-01-16  |  4KB  |  107 lines

  1.             LPTMON version 1.0
  2.        By Celso Minnitti Jr. Public domain software. Copy freely.
  3.  
  4.  
  5.     LPTMON10.ZIP has these files:
  6.         ╔═───────────────────────────────────────────────────═╗
  7.     │ LPTMON.ASM    8086 Assembly language source code    │
  8.     │ LPTMON.COM    Executable program              │
  9.     │ LPTMON.DOC    This document                  │
  10.     │ L.BAT     Batch to compile and link LPTMON.ASM  │
  11.         ╚═───────────────────────────────────────────────────═╝
  12.  
  13.  
  14. Introduction
  15. ────────────
  16.  
  17.     LPTMON is a Terminate and Stay Resident (TSR) program that will
  18. display the values of the ports 378h (data port), 379h (status port),
  19. 3FAh (control port), and how many times an IRQ7 has been occured so the
  20. user can monitor a printer at LPT1. I am including the full source code
  21. of LPTMON so you can change it as you like.
  22.  
  23.  
  24. Port 378h printer data output
  25. ─────────────────────────────
  26.  
  27.      │7│6│5│4│3│2│1│0│
  28.           │ │ │ │ │ │ │ └──── data bit 0, hardware pin 2    
  29.           │ │ │ │ │ │ └───── data bit 1, hardware pin 3     
  30.           │ │ │ │ │ └────── data bit 2, hardware pin 4      
  31.           │ │ │ │ └─────── data bit 3, hardware pin 5       
  32.           │ │ │ └──────── data bit 4, hardware pin 6        
  33.           │ │ └───────── data bit 5, hardware pin 7         
  34.           │ └────────── data bit 6, hardware pin 8          
  35.           └─────────── data bit 7, hardware pin 9           
  36.  
  37. Port 379h printer status register
  38. ─────────────────────────────────
  39.                                                                       
  40.      │7│6│5│4│3│2│1│0│
  41.           │ │ │ │ │ │ │ └──── 1 = time-out                            
  42.           │ │ │ │ │ └─┴───── unused                                   
  43.       │ │ │ │ └──────── 1 = fault,    pin 15
  44.       │ │ │ └───────── 1 = on-line,  pin 13
  45.       │ │ └────────── 1 = paper end (out of paper),  pin 12
  46.           │ └─────────── 0 = Acknowledge,  pin 10                     
  47.           └──────────── 0 = busy,  pin 11                             
  48.                                                                       
  49. Port 37Ah printer control register
  50. ──────────────────────────────────
  51.                                                                        
  52.      │7│6│5│4│3│2│1│0│
  53.       │ │ │ │ │ │ │ └──── 1 = output data to printer,  pin 1
  54.       │ │ │ │ │ │ └───── 1 = auto line feed,  pin 14
  55.       │ │ │ │ │ └────── 0 = initialize printer,  pin 16
  56.       │ │ │ │ └─────── 1 = select input,  pin 17
  57.           │ │ │ └──────── 0 = IRQ disable,1=IRQ enable for ACK         
  58.           └─┴─┴───────── unused                                        
  59.                                                                        
  60. Signal Name       25-Pin Connector    Description
  61. ───────────       ────────────────    ────────────────────────────────────────
  62.  
  63. Strobe                    1            Output signal indicating the eight
  64.                        data lines can be read
  65.  
  66. Data bit 0-7         2-9           Five volts = logical one
  67.                        Zero volts = logical zero
  68.  
  69. Acknowledge         10           Input signal indicating data received
  70.  
  71. Busy             11           Input signal indicating do NOT transmit
  72.  
  73. Paper end         12           Input signal indicating printer is
  74.                        out of paper
  75.  
  76. On-line          13           Input signal indicating printer is
  77.                        on-line, ready to receive
  78.  
  79. Auto line feed         14           Output signal selecting the line-feed
  80.                        option. If the signal is low, the
  81.                        printer is commanded to automatically
  82.                        feed one line when it detects a carriage
  83.                        return; If the signal is high, an
  84.                        explicit line-feed character is required
  85.  
  86. Fault             15           Input Status indicating an error
  87.  
  88. Initialize printer     16           Output signal resetting the printer to
  89.                        its default operating parameters
  90.  
  91. Select input         17           Output signal to switch the printer on
  92.                        and off line
  93.  
  94. Ground             18-25           Ground
  95.  
  96.  
  97. How to contact the Author
  98. ─────────────────────────
  99.  
  100.     If you have any comments or suggestions about LPTMON you can reach
  101. me at 617-235-4018 or write to:
  102.  
  103. Celso Minnitti Jr
  104. 139 Linden St
  105. Wellesley, MA 02181
  106.  
  107.