home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Zone
/
VRZONE.ISO
/
mac
/
PC
/
PCGLOVE
/
GLOVE
/
MIDIGL.ZIP
/
THEGLOVE.DOC
< prev
next >
Wrap
Text File
|
1991-11-16
|
3KB
|
102 lines
PowerGlove Interface for Parallel Port on IBM
BIG NOTE:
Assemble at YOUR OWN RISK. I have assembled this
cable successfully from these directions, BUT any
damage resulting from construction or use of this
cable is YOUR problem, not mine.
(just in case... <g>)
The Connector:
* 1
7 * * 2
6 * * 3 Looking AT the connector on glove cable
5 * * 4
Pinout:
1: Ground
2: Clock
3: Latch
4: Data
5: N/C (lightgun)
6: N/C (lightgun)
7: +5V
Connecting it to Parallel Port:
Glove Printer Port
----- ------------
1 18 GND
2 2 D0
3 3 D1
4 13 SLCT (input)
Power:
Connect pin 7 on glove to any location with +5V from
the computer. Pin 1 on any gameport is a good place.
Or, use the keyboard connector. The +5V on keyboard
should be pin 5 (may be wrong here, I'm using an XT
pinout) as follows:
Looking at back of computer:
3 1
5 4
2
The Cable:
I highly recommend buying one of the extender cables (the
Curtis Super Extendo cable is around $7 for 2 cables) to
chop up for the connector. This makes it easy to also use
other Nintendo devices and allows TESTING the glove and
still being able to exchange it if defective. (Plus you get
a long cable to the control box).
CODING
------
I'm including the latest code developed for the glove. The
code is from the glove-list-mailing. The glove-list-mailing
is an information exchange set up on internet to work on the
problem of solving problems in interfacing the glove and
discovering the hires mode. The code is commented and uses
a glitch-reduction method for VERY clean sampling. You will
need to adjust the N & D defines to match the timing on your
machine until you get a steady sample.
The code is currently set for LPT2. (INPORT = 0x279, OUTPORT
=0x278). For LPT1, change INPORT to 0x379 and OUTPORT to
0x378.
Sorry, but this code is for Turbo C/C++/Borland C++. It uses
the BGI library for the graphics cursor. It is not difficult
to adapt it to Microsoft C (or other), though.
All the important info for reading is in the comments. (BTW,
this is so new, I just received it today; MUCH better than
my original testing code <g>)
Chris Babcock
72657,2126
10/18/91
******EXTRA*********
Thanks to Chris for providing the code, which is courtesy of Dave Stampe
(whose internet address is in the code comments, so I won't repeat it here)
As Chris mentioned above, it is written with/for Borland compilers, and as
such, uses the Borland BGI library functions. I have TurboC++, and will try
to get around to changing the code to make it a free-standing executable, but
there is not enough time in my day, so if somebody wants to do this, feel free
to make the changes, rather than waiting for me! There are timing parameters
to tweak as well. Perhaps someone would like to do some work on this and
upload it to library13 of COMART?
John Eagan
76130,2225
Section leader,Virtual Reality section of Compuserve Computer Art forum
*********************