USBLPT : a 'real' parallel port on USB

Discussion about old sound cards, MIDI devices and sound related accessories.

USBLPT : a 'real' parallel port on USB

Postby dreamblaster » 2018-1-11 @ 21:41

Hi,
another project in progress :
USBLPT : an usb parallel port that behaves like a real parallel port

usblpt1.png


usblpt2.png


The board plugs on a dev kit.

This is based on USB2LPT project, high speed version 1.7, based on the Cypress CY7C68013A : https://www-user.tu-chemnitz.de/~heha/b ... dex.en.htm
(it is not the atmega project(low speed version) but the cypress high speed version).

This project has a nice software driver that can emulate a legacy USB port, including input and output instructions.
It will not be a perfect solution, as it is still limited by the USB frame timing, for high speed that is 125us
usbpacket.png

But I hope we can get quite far with this (for example connected to dosbox and have real opl2 music on a modern laptop over USB)
Last edited by dreamblaster on 2018-1-11 @ 22:06, edited 2 times in total.
Visit http://www.serdashop.com for retro sound cards, MIDI PCB's, and video converters
OPL2LPT, OPL3LPT, X2, S2, S2P, MCE2VGA, ... many projects ! Have a look, and thanks for your support !
dreamblaster
Oldbie
 
Posts: 619
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: USBLPT

Postby dreamblaster » 2018-1-11 @ 21:43

I already tested driver + the cypress dev board, flashed with the right firmware,
and the printer port driver options looks good :
usblptdrv01.png

usblptdrv02.png

usblptdrv03.png

usblptdrv04.png

usblptdrv05.png


This is on windows 7 64 bit.

Once my board prototype is ready (in a few days, waiting for components but I have the pcb's),
I will be able to test if it works for our purpose.
Visit http://www.serdashop.com for retro sound cards, MIDI PCB's, and video converters
OPL2LPT, OPL3LPT, X2, S2, S2P, MCE2VGA, ... many projects ! Have a look, and thanks for your support !
dreamblaster
Oldbie
 
Posts: 619
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: USBLPT

Postby keenmaster486 » 2018-1-11 @ 21:59

Are you a messenger from the computer gods?
I flermmed the plootash just like you asked.
Very silly indeed: https://audaxeundum.wordpress.com
User avatar
keenmaster486
Oldbie
 
Posts: 1128
Joined: 2016-2-16 @ 02:04
Location: Atroxus

Re: USBLPT

Postby chartreuse » 2018-1-11 @ 22:08

Sounds like a very interesting concept, and the driver looks quite good. The speed of the USB does seem like it might be a concern, though mostly for the games that do sampled sound using the Adlib or such. I think there was a post on the OPL2LPT thread with someone benchmarking their parallel port in the order of 2us, and the Adlib needing ~3us + ~23us delay between writes. Perhaps a solution would be to pack multiple bytes into each micro-frame, each a division of the micro-frame timing?
User avatar
chartreuse
Newbie
 
Posts: 25
Joined: 2017-12-23 @ 21:01
Location: Alberta, Canada

Re: USBLPT : a 'real' parallel port on USB

Postby dreamblaster » 2018-1-15 @ 20:17

I assembled the first prototype, see photo :
USBLPT01.jpg


It seems to work, basically, the printer port is detected, driver installed,
and I when I set one of the data lines high, it effectively goes high.
A quick test with adlipt driver in virtualbox did not work,
this needs more investigation.
Visit http://www.serdashop.com for retro sound cards, MIDI PCB's, and video converters
OPL2LPT, OPL3LPT, X2, S2, S2P, MCE2VGA, ... many projects ! Have a look, and thanks for your support !
dreamblaster
Oldbie
 
Posts: 619
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: USBLPT : a 'real' parallel port on USB

Postby Stiletto » 2018-1-15 @ 20:38

Nice to hear someone's working on this once again, I did a ton of research into the original on which it was based as a solution for a client back in the day, which inspired this post in 2008: http://forums.xkcd.com/viewtopic.php?p=944602#p944602

[EDIT] Seems I already told you about it tho: https://www.vogons.org/viewtopic.php?p=557279#p557279 :D
"I see a little silhouette-o of a man, Scaramouche, Scaramouche, will you
do the Fandango!" - Queen

Stiletto
User avatar
Stiletto
l33t
 
Posts: 4121
Joined: 2002-7-01 @ 21:57

Re: USBLPT : a 'real' parallel port on USB

Postby dreamblaster » 2018-1-15 @ 21:09

Stiletto, great, do you have a similar device to test with ?
Visit http://www.serdashop.com for retro sound cards, MIDI PCB's, and video converters
OPL2LPT, OPL3LPT, X2, S2, S2P, MCE2VGA, ... many projects ! Have a look, and thanks for your support !
dreamblaster
Oldbie
 
Posts: 619
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: USBLPT : a 'real' parallel port on USB

Postby Stiletto » 2018-1-15 @ 21:21

dreamblaster wrote:Stiletto, great, do you have a similar device to test with ?


Unfortunately I do not. A decade ago I had all sorts of weird LPT dongles for commercial apps and things still, but that time has passed.

I might have a parallel scanner kicking around.
"I see a little silhouette-o of a man, Scaramouche, Scaramouche, will you
do the Fandango!" - Queen

Stiletto
User avatar
Stiletto
l33t
 
Posts: 4121
Joined: 2002-7-01 @ 21:57

Re: USBLPT : a 'real' parallel port on USB

Postby dreamblaster » 2018-1-15 @ 21:29

did you ever use such USB2LPT device ?
(especially the high speed version? )
Visit http://www.serdashop.com for retro sound cards, MIDI PCB's, and video converters
OPL2LPT, OPL3LPT, X2, S2, S2P, MCE2VGA, ... many projects ! Have a look, and thanks for your support !
dreamblaster
Oldbie
 
Posts: 619
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: USBLPT : a 'real' parallel port on USB

Postby Stiletto » 2018-1-15 @ 22:03

dreamblaster wrote:did you ever use such USB2LPT device ?
(especially the high speed version? )


No, but I consulted for a client and suggested they purchase one for their use case, many years ago.
I don't actually know if they ever did or not. :depressed:
"I see a little silhouette-o of a man, Scaramouche, Scaramouche, will you
do the Fandango!" - Queen

Stiletto
User avatar
Stiletto
l33t
 
Posts: 4121
Joined: 2002-7-01 @ 21:57

Re: USBLPT : a 'real' parallel port on USB

Postby dreamblaster » 2018-1-15 @ 22:30

if you are interested in trying this one, pm me.
Visit http://www.serdashop.com for retro sound cards, MIDI PCB's, and video converters
OPL2LPT, OPL3LPT, X2, S2, S2P, MCE2VGA, ... many projects ! Have a look, and thanks for your support !
dreamblaster
Oldbie
 
Posts: 619
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: USBLPT : a 'real' parallel port on USB

Postby stamasd » 2018-8-25 @ 22:26

Any further development on this? I used to have somewhere a USB2LPT converter for use with a parallel port eprom programmer, but can't find it. I was looking at the original USB2LPT page (ver 1.6) https://www-user.tu-chemnitz.de/~heha/b ... -16.en.htm and it shouldn't be hard to build one from scratch even on a protoboard with an Atmega328 instead of the Atmega8 and a few other components. But I'd be up for buying a premade one too, especially a newer version that doesn't have any quirks to be worked around on x64 Windows. I've ordered a couple of the CY7C68013A-56 dev boards to try and make the hi-speed version (1.7).
I/O, I/O,
It's off to disk I go,
With a bit and a byte
And a read and a write,
I/O, I/O
stamasd
Oldbie
 
Posts: 1657
Joined: 2014-8-31 @ 19:59
Location: Connecticut

Re: USBLPT : a 'real' parallel port on USB

Postby BinaryDemon » 2018-8-26 @ 01:49

Why can’t you cut out LPT interface completely? If the usb driver can map to 0x378 why wouldnt you just map to 0x388 or 0x220 directly?
Check out DOSBox Distro:

https://sites.google.com/site/dosboxdistro/ [*]

a lightweight Linux distro (tinycore) which boots off a usb flash drive and goes straight to DOSBox.

Make your dos retrogaming experience portable!
BinaryDemon
Newbie
 
Posts: 94
Joined: 2018-1-17 @ 00:35

Re: USBLPT : a 'real' parallel port on USB

Postby stamasd » 2018-8-26 @ 02:03

The LPT interface is useful for other things too. Covox for instance.
I/O, I/O,
It's off to disk I go,
With a bit and a byte
And a read and a write,
I/O, I/O
stamasd
Oldbie
 
Posts: 1657
Joined: 2014-8-31 @ 19:59
Location: Connecticut

Re: USBLPT : a 'real' parallel port on USB

Postby dreamblaster » 2018-8-26 @ 08:39

stamasd wrote:Any further development on this?

Not really, I made the prototype and it basically worked (setting outputs 1 by 1), but not with opl2lpt.
I could not find time to do more testing.
stamasd wrote:I've ordered a couple of the CY7C68013A-56 dev boards to try and make the hi-speed version (1.7).

Yes my prototype is also based on the high speed version.
I will pm you, maybe we can join forces
Visit http://www.serdashop.com for retro sound cards, MIDI PCB's, and video converters
OPL2LPT, OPL3LPT, X2, S2, S2P, MCE2VGA, ... many projects ! Have a look, and thanks for your support !
dreamblaster
Oldbie
 
Posts: 619
Joined: 2015-1-18 @ 19:34
Location: Belgium


Return to Sound

Who is online

Users browsing this forum: No registered users and 8 guests