Board index » delphi » Using Parallel Port to Trigger Media Player

Using Parallel Port to Trigger Media Player

Can anyone tell me how I might be able to sense when two pins on a parallel
port are shorted together.

This would be very helpful to start audio files from other equipment, such as a
computer videotape editor on a semi-accurate basis.

Thanks,

sta...@magicnet.net

 

Re:Using Parallel Port to Trigger Media Player


In article <N.011896.171027...@stacyr.ppp>, @mailhost.magicnet.net says:

Quote

>Can anyone tell me how I might be able to sense when two pins on a parallel
>port are shorted together.

>This would be very helpful to start audio files from other equipment, such as a
>computer videotape editor on a semi-accurate basis.

>Thanks,

>sta...@magicnet.net

Ok I haven't tried this but it will be likely to work.
if your printer port is not in extended or expanded mode
or you have not written $20 to the control register port[$037a]
then you should be able to write data to the printer port
ie port[$0378] := $ff; or port[$378] = $00;
then if the pin you are shorting to is one of the status pins,
Those pins are normally pulled high by the port.
So if you have written an 00 to the data lines you will read
a high at the status bit unless the switch is closed.
That read is done by mystatusbyte := port[$0379]
Then you will have to decide which status bit to monitor.
If that isn't enough you can email me for more.
Also I would be very interested in your media applications
so I would like to hear from you anyway.  
     Good luck, Mike
Quote

Re:Using Parallel Port to Trigger Media Player


Quote
>>Can anyone tell me how I might be able to sense when two pins on a parallel
>>port are shorted together.

My article on the parallel port may be of use to you. It's available for
download from the electronics page at:

        http://www.demon.co.uk/temati/rafe

Hope it helps.

Regards,

Rafe

---------------------------------------------------------------
 Rafe Aldridge - r...@rcai.demon.co.uk - Oxfordshire, England.
 Computer Consultant and Applications Programmer
---------------------------------------------------------------

Other Threads