|. . .|___________________.
| /   Home | Index | Info |
|~|                       |_______________________________________.:HStH ascii.!
|~. 
| parashell - parallel port output (Linux app)
|~.
|~|
D = DATA port
Example how to use parashell.
parashell 0x378 0
Set all datapins to low level.

parashell 0x378 255
parashell 0x37a 4
Set all datapins to high level.

----- How to calculate your own values to send to program -----
You have to think the value you give to the program as a binary number. 
Every bit of the binary number control one output bit. 
The following table describes the relation of the bits, parallel port output
pins and the value of those bits. 

Pin     2   3   4   5   6   7   8   9
Bit     D0  D1  D2  D3  D4  D5  D6  D7
Value   1   2   4   8   16  32  64  128

For example if you want to set pins 2 and 3 to logic 1 (led on) then you have 
to output value 1+2=3. 
If you want to
turn on pins 3,5 and 6 then you need to output value 2+8+16=26. In this way 
you can calculate the value for any bit combination you want to output.

C = CONTROL port
Example how to use parashell.
parashell 0x37a 11
Set all datapins to low level.

parashell 0x37a 4
Set all datapins to high level.

Pin     1   14  16  17   
Bit     C0  C1  C2  C3  
Value   10  9   15  3

Pins 18,19,20,21,22,23,24 and 25 are all ground pins

my conector :

parallel sub-d 25

                                pin 18-25 (ground)
                                   |
                           LED     |
pin 1  (C0) ---------------|>|-----+
                                   |
               150ohm              |
pin 2  (D0) ----/\/\/------|>|-----+
                                   |
pin 3  (D1) ----/\/\/------|>|-----+
                                   |
pin 4  (D2) ----/\/\/------|>|-----+
                                   |
pin 5  (D3) ----/\/\/------|>|-----+
                                   |
pin 6  (D4) ----/\/\/------|>|-----+
                                   |
pin 7  (D5) ----/\/\/------|>|-----+
                                   |
pin 8  (D7) ----/\/\/------|>|-----+
                                   |
pin 9  (D7) ----/\/\/------|>|-----+
                                   |
pin 14 (C1) ---------------|>|-----+
                                   |
pin 16 (C2) ---------------|>|-----+
                                   |
pin 17 (C3) ---------------|>|-----+

|~|
|~|
|~|
|~|
|~| parashell voorbeeld scripts
|~|
|~|
|~|
|~|
|~|
|~|
|~|
| \....  . | 
|      |. .|___________________________________________________________________!
!..