Putting a YM2203 FM soundchip in place of the YM2149

General discussions or ideas about hardware.
User avatar
unseenmenace
Posts: 9
Joined: Thu Apr 01, 2021 9:02 am

Putting a YM2203 FM soundchip in place of the YM2149

Post by unseenmenace »

I posted about this idea over on Atari-Forum and Joel Olsen suggested here might be a better audience for it :)

I'm working on a music composing program for the ST and thought it would be a good opportunity to implement support for a better soundchip in an ST after remembering an old thread about the possibility some while ago:
https://www.atari-forum.com/viewtopic.php?f=15&t=6520

After looking at a load of datasheets I settled on using a YM2203 as it seems to be the closest to the YM2149 in terms of connections and operation, and I think I'm pretty much finished with the design of the PCB now. If anyone on here is experienced with this kind of thing I'd be very happy to hear any suggestions or criticisms.

The bus control pins were the biggest challenge as upon consulting The Bible (ST Internals) it appeared that the ST keeps one of the control pins on permanently and only adjusts 2 of them, so I had to use the 2 logic chips and some diodes to adapt that to the signals the YM2203 needed.

Bus Translation.jpg
Bus Translation.jpg (51.3 KiB) Viewed 5395 times


This is what I've come up with:

PCB.gif
PCB.gif (160.02 KiB) Viewed 5395 times


It has separate outputs for the SSG and FM outputs and connections for a double-pole switch to combine them as desired.

I should note that credit for the amplifier circuitry (and how to hook the DAC up) goes to Zenmai from his YM2203 Jukebox project:
https://github.com/zenmai/YM2203_JukeBox
User avatar
exxos
Site Admin
Site Admin
Posts: 23499
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Putting a YM2203 FM soundchip in place of the YM2149

Post by exxos »

Is there any real difference from the 2149 then ?

Also, there's no need to impedance match tracks.. If anything it will probably make signals worse.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
unseenmenace
Posts: 9
Joined: Thu Apr 01, 2021 9:02 am

Re: Putting a YM2203 FM soundchip in place of the YM2149

Post by unseenmenace »

exxos wrote: Thu Apr 01, 2021 9:51 pm Is there any real difference from the 2149 then ?
Yes, it has 3 FM voices in addition to everything the YM2149 has and they are accessed in the usual way but with some extra YM register numbers.
exxos wrote: Thu Apr 01, 2021 9:51 pm Also, there's no need to impedance match tracks.. If anything it will probably make signals worse.
I have since been told that it's unnecessary (on Facebook), so I'll give the traces more space instead, thanks :)
User avatar
PhilC
Moderator
Moderator
Posts: 6016
Joined: Fri Mar 23, 2018 8:22 pm

Re: Putting a YM2203 FM soundchip in place of the YM2149

Post by PhilC »

Interesting project, I'll look forward to hearing the results
If it ain't broke, test it to Destruction.
User avatar
unseenmenace
Posts: 9
Joined: Thu Apr 01, 2021 9:02 am

Re: Putting a YM2203 FM soundchip in place of the YM2149

Post by unseenmenace »

I'd appreciate it if anyone could check that my logic in the above spreadsheet table is sound. Between the 2 YM datasheets and ST Internals, I'm fairly happy everything else is good :) This is the current PCB, and I'd be happy to send the file if anyone wants to see what's going on more closely:

PCB.gif
PCB.gif (227.49 KiB) Viewed 5302 times

I've ordered some YM2203s, Y3014 DACs, DIP-40 sockets and pin strips from AliExpress and I'll get the other parts from closer to home once I'm confident enough to get a handful of PCBs ordered.
joelolzen
Posts: 12
Joined: Thu May 23, 2019 6:58 pm

Re: Putting a YM2203 FM soundchip in place of the YM2149

Post by joelolzen »

Glad to see you made it here ;)

I never knew about this chip until I heard about your project, and I mean, a better upgrade to stfm sound than this if it can be done, I think is hard to beat.

The sound this chip can produce I believe is the perfect evolution of sound on the ST.

Hope you get help with your questions and support from all the smart people hanging in here 8-)

Here’s an example of the 2203 plying all its six voices
https://youtu.be/qSWCihT_2Ho

Joel
User avatar
exxos
Site Admin
Site Admin
Posts: 23499
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Putting a YM2203 FM soundchip in place of the YM2149

Post by exxos »

That does sound pretty cool. Has more of a synth vibe to it than chip.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
SophieRose
Posts: 33
Joined: Mon Dec 28, 2020 4:47 am
Location: Leamington Spa
Contact:

Re: Putting a YM2203 FM soundchip in place of the YM2149

Post by SophieRose »

An interesting project, looking forward to seeing this progress. 8-)
Musician and Atari ST user. https://sophie-rose.bandcamp.com
Mega ST4 T28, 1040STE & 520STM, Amiga 600, Link 480Z, Amstrad 6128 plus, Timex2048, C128, C64, MSX HB201P. Plus too many more.
User avatar
unseenmenace
Posts: 9
Joined: Thu Apr 01, 2021 9:02 am

Re: Putting a YM2203 FM soundchip in place of the YM2149

Post by unseenmenace »

joelolzen wrote: Sun Apr 04, 2021 5:57 am Glad to see you made it here ;)

I never knew about this chip until I heard about your project, and I mean, a better upgrade to stfm sound than this if it can be done, I think is hard to beat.

The sound this chip can produce I believe is the perfect evolution of sound on the ST.

Hope you get help with your questions and support from all the smart people hanging in here 8-)
Thanks Joel :) The YM2203 was used in LOADS of early arcade games as well as the NEC PC-98, popular in Japan in the 90s, which is why there are so many good tunes out there written for it.
exxos wrote: Sun Apr 04, 2021 6:47 am That does sound pretty cool. Has more of a synth vibe to it than chip.
It is actually a full blown 3 channel synthesizer bolted onto a YM2149, and the predecessor to the soundchip in the Sega Megadrive. Each channel has 4 oscillators and the 3rd channel can be switched into a twin 2 oscillator mode or a quad single oscillator mode, i.e. 2 notes at a time with a less complex waveform, or 4 notes at a time playing a pure sine wave.
SophieRose wrote: Sun Apr 04, 2021 7:59 am An interesting project, looking forward to seeing this progress. 8-)
Thanks, hope it pans out as I've ordered some of the parts and plan to get the PCB's made as soon as I'm confident enough there's half a chance of them working :D

The plan is to fit one to one of my spare STFMs and check the standard YM2149 features work first, then code a quick and dirty VGM file player as, much like YM files, they are just register dumps that can be streamed into the soundchip :)

3D render, just because
3D render, just because
Render.jpg (199.47 KiB) Viewed 5196 times
User avatar
unseenmenace
Posts: 9
Joined: Thu Apr 01, 2021 9:02 am

Re: Putting a YM2203 FM soundchip in place of the YM2149

Post by unseenmenace »

So these have arrived so I'm hoping somebody here might be able to give my conversion table and design a look over and see if I've done anything dumb.

YM2203C.jpg
YM2203C.jpg (113.26 KiB) Viewed 4781 times

If it looks good to anyone with a bit of knowhow then I'll be a bit more confident about getting some PCBs ordered and see if I can make this work :)
Post Reply

Return to “HARDWARE DISCUSSIONS”