Doubts about SFG-01 and SFG-05

By Juan Luis

Resident (46)

Аватар пользователя Juan Luis

06-04-2019, 12:16

I'm interested in programming YM2151 OPM sound chip. I could see that this chip is on MSX expansions SFG-01 and -05. I expected to see base port number taking a look in OpenMSX in Yamaha_SFG-01.xml expansion file descriptor, but there is only a memory definition. There isn't a i/o port XML descriptor on that file.

YM2151 pdf manual that I have doesn't mention anything about I/O base port. I/O base port uses to be defined on expansion manuals because I/O base port can be different from an expansion card from a manufacturer to other with same chip from other manufacturer.

Where can I find information about base I/O ports of SFG-01 and -05?
Are the same I/O ports that YM278B of Moonsound?

One question more.
What music programs support SFG-01 and SFG-05?

Для того, чтобы оставить комментарий, необходимо регистрация или !login

By sdsnatcher73

Hero (535)

Аватар пользователя sdsnatcher73

06-04-2019, 15:47

I think you are right and it is I/O only. You’ll find that on this page as well: http://map.grauw.nl/resources/midi/ym2148.php from Grauw. Vgmplay-msxby Grauw is also a great program that uses the SFG and sources are available to learn how to program for the SFG.

By Grauw

Ascended (8387)

Аватар пользователя Grauw

06-04-2019, 16:26

The SFG uses memory-mapped I/O, rather than an I/O port. It uses memory addresses 3FF0H and 3FF1H for the YM2151 OPM. Determine the slot by scanning slots for the “MCHFM0” ID string at address 0080H. When entering the music replayer routine, enable the SFG slot and write to addresses 3FF0H and 3FF1H to access the YM2151 OPM.

By Meits

Scribe (5488)

Аватар пользователя Meits

06-04-2019, 16:43

There's something which I might need to find out someday. If I have a dal-so-ri 2 and an sfg05 clone in my slot expander, the dal-so-ri 2 is mute, while a dal-so-ri 1 will just play.
Eventhough the sfg05 goes through memory mapped I/O and an OPL4 through I/O, there's stuff that can conflict. In my case it might be a dip switch setting of the dal-so-ri 2 which adds functions which might collide with the sfg05?

By sdsnatcher73

Hero (535)

Аватар пользователя sdsnatcher73

06-04-2019, 18:02

Meits wrote:

There's something which I might need to find out someday. If I have a dal-so-ri 2 and an sfg05 clone in my slot expander, the dal-so-ri 2 is mute, while a dal-so-ri 1 will just play.
Eventhough the sfg05 goes through memory mapped I/O and an OPL4 through I/O, there's stuff that can conflict. In my case it might be a dip switch setting of the dal-so-ri 2 which adds functions which might collide with the sfg05?

Might also depend on the slot-expander and whether or not it has buffers In the signal path. For me SFG-05 clone and Dal-So-Ri 2 work fine in the 8bits4ever slotx4 with the unbuffered board (that comes with the slot expander as an option. I had issues with the buffered board with these 2 carts (although not the same as you mentioned)... In my case SFG would make noise during boot but would stop doing that as soon as Nextor was loaded...

By Grauw

Ascended (8387)

Аватар пользователя Grauw

06-04-2019, 19:58

Meits wrote:

There's something which I might need to find out someday. If I have a dal-so-ri 2 and an sfg05 clone in my slot expander, the dal-so-ri 2 is mute, while a dal-so-ri 1 will just play.

Is this only when using VGMPlay, or also when using the DalSoRi R2 with other software (like DMV)?

By Meits

Scribe (5488)

Аватар пользователя Meits

07-04-2019, 00:04

I noticed it in mbwave. After inserting the dal-so-ri 1 the problem was gone. But I guess this issue is drifting the topic a bit off. Sorry for that. But the initial post reminded me of it Wink

By Juan Luis

Resident (46)

Аватар пользователя Juan Luis

07-04-2019, 00:29

Grauw wrote: "The SFG uses memory-mapped I/O, rather than an I/O port. It uses memory addresses 3FF0H and 3FF1H for the YM2151 OPM. Determine the slot by scanning slots for the “MCHFM0” ID string at address 0080H. When entering the music replayer routine, enable the SFG slot and write to addresses 3FF0H and 3FF1H to access the YM2151 OPM. "

Thanks for the information. I had discovered vgmplay a few hours ago and I was studying the source code to find out how this music card works.

Thanks to all for all answers. They were very useful.