electrified / rc2014-ym2149

KiCad schematics and gerbers for a YM sound card for the RC2014. See it in action here: https://www.youtube.com/watch?v=-iLwi9FagFE
Other
63 stars 17 forks source link

Rev 6.1 jumpers #10

Open GrantMeStrength opened 1 year ago

GrantMeStrength commented 1 year ago

Hi! Any information on the rev 6.1 jumpers? Thank you! -john

electrified commented 1 year ago

Hi John,

The text in the main readme should be accurate - https://github.com/electrified/rc2014-ym2149 but the images are for the v6 version.

The jumpers on V6 and V6.1 have the same function number for number but their positioning has moved, V6 had a JP4 which is no longer present on V6.1.

I will try and update the images in the readme soon, but I don't currently have a v6.1 board to hand to photograph.

Pax-nl commented 4 months ago

Does this help?, I can make a better one tomorrow with daylight.

rev6 1

I would like to know the correct settings to play the pt3 files with the player in CP/M, the jumper settings on this photo do not seem to work, but this is the first time a tried as I have the card soldered today :D

electrified commented 4 months ago

Hi @Pax-nl, what version of RomWBW are you using and where did you get it (i.e. was it supplied on a pre-flashed ROM in a kit by Spencer or did you compile it yourself?)

Hopefully we can get to the bottom of why you can't get it to work!

Thanks, Ed

electrified commented 4 months ago

I've just noticed you have JP8 on 1-2, it needs to be on 2-3 when the oscillator is omitted (see https://github.com/electrified/rc2014-ym2149?tab=readme-ov-file#jp8), that would definitely prevent it from working.

Pax-nl commented 4 months ago

Thank you!

Yes this was the issue and therefore the solution.

I used the player from: https://github.com/feilipu/RC2014-YM2149

After changing the code for REV 6:

A binary can be built for the [Revision 6 Module], by setting the REV5 option equal to 0. 
This will enable the MSX addressing available on Revision 6 Modules.

Compiled with:

z88dk-z80asm  PS-PTxPlay.asm -m -l -b

And uploaded to CFCard via download.com in CP/M. (I'm not using RomWBW, I do not have a 512Kb module)

electrified commented 4 months ago

Awesome, glad you got it working.

Pax-nl commented 4 months ago

@electrified

If I compile PTxPlay.asm can this be run from CP/M 2.2 or can it only be run from RomWBW, if CP/M is possible what would be the jumper settings for REV 6.1 board? (all jumpers)

I tried several settings but nothing gets even a beep.

electrified commented 4 months ago

Use the ptxplay from feilipu's repo as you are currently doing - ensuring you have DEFC REV5 = 0 set. The version in this repo is really only for if you don't have CP/M at all (it builds the code and music into one image)

The board jumpers should look like the below picture if you don't have an oscillator and are using an AY chip vs a YM.

JP6 - 4th pins down for 0xA0 (MSX Compatible) addressing JP8 - pins 2-3 for use bus clock JP9 - pins 2-3 divide bus clock by 4 JP1/2/3/5 - pins 1-2 for "normal"/MSX addressing JP7 - can be omitted as AY doesn't have a clock divider, but harmless if present

This will set the address ports to A0 and A1, the MSX ports.

PXL_20240625_203357144

As well as ptxplay you can try decend.bas in mbasic https://github.com/electrified/rc2014-ym2149/blob/main/player/test/descend.bas

I've verified both the above are working on my board tonight - thanks for giving me an excuse to get the RC2014 out, I've not played with it in a while!

Pax-nl commented 4 months ago

Thank you for your detailed explanation.

I was hoping to get the card in D8/D0 mode so I could use your PT3 library.

electrified commented 4 months ago

D8/D0 addressing isn't possible with Rev6.1 (see https://github.com/electrified/rc2014-ym2149?tab=readme-ov-file#compatibility-with-rev-5)

The library should work with A0/A1 if you set RC=0 and MSX=1 https://github.com/electrified/rc2014-ym2149/blob/main/player/PTxPlay.asm#L11

Pax-nl commented 4 months ago

Yes, I got that from your detailed explanation, thank you for all your help, I can continue enjoying your Sound Module, very good job, I love it..