B&B Electronics Parallel Port Input/Output Converter PPIO Benutzerhandbuch

Seite von 34
 
 
PPIO2899 Manual 
 
B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 
5
 
 
Table 1 
 
Note 1: X means no connection to any DB-25 pin.  
 
Note 2: Bit 4 of 37AH as an output is used to control the interrupt IRQ7. 
When this bit is HIGH, IRQ7 is enabled and when this bit is LOW, IRQ7 is 
disabled. As an input, this reads the status of the IRQ7 interrupt to see if it 
is enabled or not. 
 
Note 3:  The “bars” over the top of some pin numbers indicate that those 
signals are inverted (in hardware) from PC's bus to DB-25 pin. 
 
 
You can also read pins 1, 14, 16, and 17 using the INP(&H37A) 
command. For this to work properly, you must first force all the 
outputs HIGH. The way the parallel port is wired, if you do not force 
the outputs HIGH they will interfere with the inputs. To do this, use 
the command  OUT &H37A,&H04 (04H is the same as 00000100 
binary). Pins 1, 14, and 17 are inverting so a ZERO written to them 
forces them HIGH. Pin 16 is non-inverting so the ONE written to it 
forces it HIGH. After issuing the OUT command you can then do a 
A2=INP(&H37A) that will read the TTL levels on those pins. In this 
case the four upper bits (bits 4-7) will be unknown, but will probably 
be HIGH. 
 
378H 
379H 
37AH 
BIT 
Output 
Input 
Output 
Input 
Output 
Input 
 
 
 
 
 


 
 
 
 
 
14 
14 
 
 
 
 
 
 
16 
 
16 
 
 
 
 
 
15 
17 
17 
 
 
 
 
 
13 
See 
Note 2 
See 
Note 2 
 
 
 
 
 
12 
 
 
 
 
 
 
 
10 
 
 
 
 
 
 
11