OPL2LPT

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

OPL2LPT

Postby dreamblaster » 2017-7-24 @ 20:44

Hi !
I designed new PCB : OPL2LPT , or nickname 'ADLIPT 1' :
A compact 'adlib' on parallel port, 3.5mm line out connector.

PCB's and components ordered for the first few prototypes,
these should be ready around 2nd week of august.
This time I took care to make it 'all through hole', so it can be a solder kit.
adlipt1.png

adlipt1_b.png


This was inspired by this project : http://www.raphnet.net/electronique/adlib/adlib_en.php
I used the same parallel port pinout mapping, so his adplug modification should work.
Any other software that could work ?
For DOS machines, the ultimate would be a small DOS TSR that captures 0x388 and 0x389 writes and outputs on the parallel port instead.
dreamblaster
Oldbie
 
Posts: 571
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: OPL2LPT

Postby Jepael » 2017-7-24 @ 20:53

I hope you did not clone the awkward crystal oscillator circuitry for this :)

Meanwhile, the interrupt pin of OPL could be connected to LPT interrupt pin, maybe even through a jumper so it can be removed.

I'm happy to do a schematic review if you like.

I can also try to mod some existing programs to work with this, or make a few programs to playback simple stuff like .RAW, .DRO or .IMF files.

Also what I would really love is a header for the DAC data so it can be easily digitally captured.

(and ADC for I2S/SPDIF output but that would be kind of overkill :D )

Maybe even a stereo SMD version with OPL3?
Jepael
Oldbie
 
Posts: 1195
Joined: 2005-6-15 @ 19:28
Location: Finland

Re: OPL2LPT

Postby dreamblaster » 2017-7-24 @ 21:03

Hey,
the oscillator circuit is different, in fact I think only the pinout is the same as that project ;-)
Currently connected is : 8 Data lines (pins 2-9), 1 address line (pin 1), 1 /write line (pin 16).
We can easily wire up any pin we like, for testing.

I will mail you about this, and also the schematic of my OPL3PLT.
The schematic for that is also ready, but PCB design not yet.

Other SoundChip boards in the pipeline, and maybe also an LPT streamer device with MIDI ports.
dreamblaster
Oldbie
 
Posts: 571
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: OPL2LPT

Postby Super_Relay » 2017-7-25 @ 00:55

in addition to the Dos TSR a dosbox patch that would pass the data through would mean the ability to get non emulated adlib on very new machines.
User avatar
Super_Relay
Newbie
 
Posts: 61
Joined: 2014-5-15 @ 02:11
Location: Australia

Re: OPL2LPT

Postby Jorpho » 2017-7-25 @ 02:49

Super_Relay wrote:in addition to the Dos TSR a dosbox patch that would pass the data through would mean the ability to get non emulated adlib on very new machines.
If I'm not mistaken, very new machines don't seem to have parallel ports anymore.
User avatar
Jorpho
l33t++
 
Posts: 7043
Joined: 2003-2-14 @ 19:50
Location: Canada

Re: OPL2LPT

Postby xjas » 2017-7-25 @ 03:07

Really cool idea! Looking forward to seeing where this project goes. :) It's like a Yamaha FB-01 miniaturized.

Jorpho wrote:If I'm not mistaken, very new machines don't seem to have parallel ports anymore.

I was surprised to find the then-brand new I7-based Optiplex workstation my work bought me in 2015 does have a parallel port, so they are still around. Also PCI-e parallel port cards don't seem that uncommon, no idea if they act the same as a native one though.


I guess this would be a fine time to let out of the bag that I'm working on my own fork of Schism Tracker, which, among other things, is intended to support both hardware FM synth chips (OPL, ESFM, CQM) and parallel-port MIDI. So this device is extremely relevant to my interests. Expect a first alpha of that to be released around mid-2025 at the rate I'm going.
selected (probably) unfinished build threads { In a Lunchbox / Has It All / Hot Damn! / IT IS THE NINETIES / 20 Years of Junk }
User avatar
xjas
Oldbie
 
Posts: 1392
Joined: 2015-9-07 @ 02:29

Re: OPL2LPT

Postby Super_Relay » 2017-7-25 @ 03:57

Jorpho wrote:
Super_Relay wrote:in addition to the Dos TSR a dosbox patch that would pass the data through would mean the ability to get non emulated adlib on very new machines.
If I'm not mistaken, very new machines don't seem to have parallel ports anymore.



I guess "very" is a relative term :p

Certainly there is a crossover of machines that are exclusively PCI-e or are small form factor and the only expansion slot is needed for a video card but have a parallel port, many laptops and x86 thin clients too and even latest gen z270 intel platforms that have a header for parallel port rather than the port itself.

There is also the possibility of finding a USB parallel port that is up to the task, i cant remember off the top of my head how the CVX4 experiments in that regard finished up.
User avatar
Super_Relay
Newbie
 
Posts: 61
Joined: 2014-5-15 @ 02:11
Location: Australia

Re: OPL2LPT

Postby Beegle » 2017-7-25 @ 05:29

Hah, this exact project was a future thing I had in mind of trying. Glad you thought of it too.
Were you partly inspired by Raphnet's endeavors in this vein?
http://www.raphnet.net/electronique/adlib/adlib_en.php
The more sound cards, the better.
AdLib documentary: Official Thread
User avatar
Beegle
Member
 
Posts: 414
Joined: 2013-12-01 @ 02:15
Location: Canada

Re: OPL2LPT

Postby Jepael » 2017-7-25 @ 06:10

Super_Relay wrote:There is also the possibility of finding a USB parallel port that is up to the task


I highly doubt this unless it's a very special USB parallel adapter with very special drivers and very special API to use it.

My experience with USB parallel ports is that they are only suitable for connecting actual printers, not real-time bit-bang GPIO hobby projects.

That was at least the situation over 10 years ago, it might have changed since as both drivers get more features and hobbyist programmers get smarter writing/using drivers, but as USB parallel ports are not visible at standard I/O port addresses they could not be used from native DOS or Windows command line for example.

What this needs here is direct IO port interface to the parallel port.
Jepael
Oldbie
 
Posts: 1195
Joined: 2005-6-15 @ 19:28
Location: Finland

Re: OPL2LPT

Postby Jo22 » 2017-7-25 @ 12:02

I believe there's at least one "USB to LPT" project that aims to provide a true parallel port.

Converter From USB To Parallel
https://www-user.tu-chemnitz.de/~heha/b ... C/USB2LPT/

Cloning instructions (English)
USB2LPT Release 1.0
USB2LPT Release 1.1
USB2LPT Release 1.2
USB2LPT Release 1.3
USB2LPT Release 1.4
USB2LPT Release 1.5
USB2LPT Release 1.6
USB2LPT Release 1.7

Prototype

Sadly, the technical University of Chemnitz apparently has deleted some of the pages.
Maybe because they are changing things, dunno.
"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//
User avatar
Jo22
l33t
 
Posts: 2627
Joined: 2009-12-13 @ 07:06
Location: Europe

Re: OPL2LPT

Postby dreamblaster » 2017-8-15 @ 20:53

1st prototype... (Still waiting for the yamaha chips to arrive)
DSCN0241.JPG
dreamblaster
Oldbie
 
Posts: 571
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: OPL2LPT

Postby keropi » 2017-8-15 @ 21:09

ooooh! looking good!
User avatar
keropi
l33t++
 
Posts: 6340
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: OPL2LPT

Postby Jepael » 2017-8-15 @ 21:30

Do you already have a player program for that?

I could easily modify a player for that (provided the interface is still the same).
Jepael
Oldbie
 
Posts: 1195
Joined: 2005-6-15 @ 19:28
Location: Finland

Re: OPL2LPT

Postby dreamblaster » 2017-8-15 @ 21:45

Jepael wrote:Do you already have a player program for that?

No, I don't have software yet, will pm you. :-)
dreamblaster
Oldbie
 
Posts: 571
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: OPL2LPT

Postby Joey_sw » 2017-8-16 @ 00:30

Jepael wrote:My experience with USB parallel ports is that they are only suitable for connecting actual printers, not real-time bit-bang GPIO hobby projects.

That was at least the situation over 10 years ago, it might have changed since as both drivers get more features and hobbyist programmers get smarter writing/using drivers, but as USB parallel ports are not visible at standard I/O port addresses they could not be used from native DOS or Windows command line for example.

What this needs here is direct IO port interface to the parallel port.

The same happened to me, USB-to-LPT doesn't seems to works well with me.
DOS program can't see it, it can be used for printing but only from windows but even that not all programs with printing features works.

What works for me, is when i managed to find a PCI card that have LPT port on it.
Dos program can see the newly added parallel port and use them. It did however, conflicts with motherboard with built-in parallel port until i disable that in BIOS settings.

Now that i think about it, adding card with LPT port on it was the original approach of IBM PC compatible (such as MD&P Adapter), until clone makers started to integrated the parallel port into their motherboards.
-fffuuu
User avatar
Joey_sw
Oldbie
 
Posts: 551
Joined: 2011-8-17 @ 12:03

Re: OPL2LPT

Postby Beegle » 2017-8-16 @ 04:00

Will a TSR be planned to re-route normal AdLib commands to the LPT port?
The more sound cards, the better.
AdLib documentary: Official Thread
User avatar
Beegle
Member
 
Posts: 414
Joined: 2013-12-01 @ 02:15
Location: Canada

Re: OPL2LPT

Postby dreamblaster » 2017-8-16 @ 06:24

Beegle wrote:Will a TSR be planned to re-route normal AdLib commands to the LPT port?

Yes
dreamblaster
Oldbie
 
Posts: 571
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: OPL2LPT

Postby 640K!enough » 2017-8-26 @ 01:58

dreamblaster wrote:Currently connected is : 8 Data lines (pins 2-9), 1 address line (pin 1), 1 /write line (pin 16).

Did you not account for the ability to read? There is a certain amount of old AdLib code that relies on the ability to read status registers. Failing that, some software may not work, and other software may fail to detect the "card" altogether.

Did you add pull-up resistors for the control lines? From my reading, that is always recommended, but the exact value has been a matter of some debate. If initial testing fails, that may be one thing to look at.
640K!enough
Member
 
Posts: 310
Joined: 2017-5-11 @ 17:52
Location: Canada

Re: OPL2LPT

Postby Jo22 » 2017-8-26 @ 11:30

640K!enough@ I think a card detection can be implemented in the TSR, as well.
But even without that, the old standard parallel port can read data via the 8 data lines.
I'm talking about the old centronics port, without nibble or PS/2 mode. It's not pretty, but it works.
The trick is to overdrive the latches for the data ports.
http://retired.beyondlogic.org/spp/parallel.htm
"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//
User avatar
Jo22
l33t
 
Posts: 2627
Joined: 2009-12-13 @ 07:06
Location: Europe

Re: OPL2LPT

Postby dreamblaster » 2017-8-26 @ 16:32

640K!enough wrote:
dreamblaster wrote:Currently connected is : 8 Data lines (pins 2-9), 1 address line (pin 1), 1 /write line (pin 16).

Did you not account for the ability to read? There is a certain amount of old AdLib code that relies on the ability to read status registers. Failing that, some software may not work, and other software may fail to detect the "card" altogether.


Currently no read ability, I though any detection support could be added in the TSR.
dreamblaster
Oldbie
 
Posts: 571
Joined: 2015-1-18 @ 19:34
Location: Belgium

Next

Return to Sound

Who is online

Users browsing this forum: canthearu, matze79 and 5 guests