T-04YBSC-A, new YMF71x based sound card + SETYMF utility

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

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-5-18 @ 10:54

After a lot of headaches I have OPL4 playing sound ! I managed to fry one chip though, I had !OE and !WE swapped in CPLD pinout conf and I damaged the IO buffers of one OPL4...
The CPLDs are dead end and I have been working on a kludge :
FLEXkludge.png

Flex10K FPGA with its conf memory that will go in place of the original CPLD. Now there are no limits on what I can do. Parts are coming from China though so it will take a while... In the mean time I'll begin work with the STM32.
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-6-10 @ 13:45

First code runs on the ARM :D
Image
Long and painful road ahead, lot of peripherals to learn and whatnot...
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby 640K!enough » 2019-6-10 @ 23:25

Do you have any test code implemented yet? Are you planning a purely bare-metal implementation, or with a supporting OS?

The first positive results are always encouraging. Do you know the source of the "Cannot read memory" error?
640K!enough
Oldbie
 
Posts: 504
Joined: 2017-5-11 @ 17:52
Location: Canada

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-6-10 @ 23:50

I have only done very preliminary code, setting up interrupt vectors and few other bits, just enough to get to a point where the CPU runs my code which currently is just putting some values into the registers. It is going to be full bare metal where every cycle and byte counts so that I can get maximum polyhpony and have most amount of space for any samples and LUTs.

"The cannot read memory" was a me stumbling in the cable lol. In the beginning I was unable to actually run anything but that was matter of changing few directives on the assembler end of things and a misunderstanding of memory map.
Once I finish one PCB I'll focus a bit more on the code side of things and will get a LED on the board light up or even blink. Some sawtooth coming out the DAC would also be quite nice to have but there's a lot of peripherals that need to be set up for things to start working nicely. The documentation is very good and I already have some experience with a different family STM32 so I mostly know what needs to be done to get the results I'm after, things should be fairly smooth once I really get into it.
Most of these chips are both pin compatible and also software compatible or at least only needing recompile (symbols etc. have same names and often same location/function). ST has done a very good job making parts that are upwards compatible.

I also got the FPGA configuration memory, FPGA itself shouldn't take long to follow and PCBs I'll get next week most probably. Then I'll work in MPU-401, SB and ARM comms interfaces. Getting SB going is probably gonna happen first, it is much less work compared to a synthesizer.
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-6-19 @ 21:26

After half a day of chasing a problem that didn't exist (I had an assembler bug instead) I finally have the LEDs lit up :
Image
:D

I still have to initialize the peripherals I'm using (UARTs, audio interfaces, DMA, FMC and some other stuff) but for the time being I'm pretty happy :D
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby keropi » 2019-6-19 @ 22:03

leds are important :)
nice to see this progressing!
User avatar
keropi
l33t++
 
Posts: 7250
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby 640K!enough » 2019-6-20 @ 15:47

Sometimes just getting a new chip ready for useful work takes almost as much time as actually getting it to do what you need. I don't think you mentioned it yet: what development environment are you using? Did you start with an off-the-shelf package, or assemble your own using a free IDE and cross-compiler?

Also, do you have a good (and cheap) source for the 29F160? I have been using the Fujitsu equivalent, which also supports "fast mode" programming. At the time, they were available on eBay for somewhere between $2 and $2.50 each, and shipping was quite reasonable. If they don't have any more, I may need a new source.
640K!enough
Oldbie
 
Posts: 504
Joined: 2017-5-11 @ 17:52
Location: Canada

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby ruthan » 2019-6-20 @ 17:20

Because i now have ISA slots machine, i hope that these leds could be disabled.. they are great for optimal diagnosis, but i hate blinking especially in case with transparent side..
Im old goal oriented goatman, i care about facts and freedom, not about egos+prejudices. Hoarding=sickness. If you want respect, gain it by your behavior. I hate stupid SW limits, SW=virtual world, everything should be possible if you have enough HW.
User avatar
ruthan
Oldbie
 
Posts: 1094
Joined: 2013-3-07 @ 04:01
Location: Schwarz Wald-from France to Ukraine, from Denmark to Austria. Celts+German+Slavs melting pot.

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-6-20 @ 18:06

The LEDs are there solely for diagnostic purposes, I can show internal state with them or whatever else I might need during development.

As far as development goes, I used Cube MX to generate pinout and config that I have referenced for correct values to use in PLLs and whatever else in my assembly blob. I am using FASMARM + ConTEXT + several monitors showing PDFs as my development environment. Getting started part is the most difficult, actual logic and synth will not be too much of a problem since those work how I want.

As far as flash goes, I'm using few parts from my stash that are left. I got a handful more and it'll be enough for these prototype needs. All future things are 3.3V only anyway so that I can use modern parts instead.

Next week I'll get the PCBs of the FPGA kludge and can expand the card to what it is supposed to get. I'm possibly able to do most of SBpro code entirely in the FPGA, I'm not quite sure how much the Flex 10K can hold but it'll certainly be much more than the CPLD currently. Once FPGA is in place I can finally work in ISA <> ARM comms.
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-7-02 @ 11:44

Image
Image
Image
We have FLEXkludge ! Things can continue on hardware front now ~
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby LABS » 2019-7-02 @ 12:37

This looks amazing
User avatar
LABS
Member
 
Posts: 140
Joined: 2018-6-07 @ 16:49
Location: Riga, LV

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-7-02 @ 13:26

Hahaha, thänk you !
Your card is pretty nice too ~
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby 640K!enough » 2019-7-03 @ 03:08

That has to be the neatest, cleanest "kludge" I've seen in quite a while; nice work. Are those standard 1.27mm-pitch pin headers?
640K!enough
Oldbie
 
Posts: 504
Joined: 2017-5-11 @ 17:52
Location: Canada

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-7-03 @ 07:13

Yeah, these are standard 1.27mm, bought from ebay. If the original chip was something else besides PLCC this would have been much more complicated, possibly to a point a new PCB is needed lol.
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-7-17 @ 12:15

I now have solid MPU-401 data access interface, only thing needed is ARM actually doing something. FIFO would be nice but first test used up lot of LE's in the FPGA (in addition to memory bits) and I still need them for other stuff that are yet to be implemented. Once I have all needed functions done I'll work in FIFO so that the MCU wouldn't need an IRQ on every data byte.

SB data passing is mostly implemented too but not to a point where games can detect anything.

One curious thing is that IRQ3 which I used for YMZ290 stopped working. And at the same time when I switched CPLD to FPGA, so my thought was that I have a timing issue since the FPGA is much faster and will have to clean it up somewhere... eventually nothing fixed music being gone, I could talk to all the chips properly and I could see IRQ3 line change as needed too... Then I tried the SW20PC and it behaved the same way, plot thickens. Then I took my YM71x card and ran a test in SETYMF and lo and behold, IRQ3 was not firing any interrupts ! I changed to IRQ 5/7/9 and everything works, FPGA was never at fault... I have no clue how IRQ3 died on the motherboard...

No work has been done on the ARM side for the time being. Effort has mainly gone into work related things...
First serious ARM thing will probably be making UARTs work and pass MPU401 data to the WaveBlaster connector for some funstuff ~

My second test card has been FPGA'd too, to verify that the problem wasn't with the first card also while I was trying to figure things out.
Image
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby keropi » 2019-7-17 @ 12:38

great stuff!
User avatar
keropi
l33t++
 
Posts: 7250
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby zyga64 » 2019-7-31 @ 22:16

Hi Tiido.
I think I've found a bug in SETYMF utility. On my YMF718 card (OPL3SA2) I've obeserved problem with only two games (Dynablaster and Cool Spot) FM sound is playing fine, but SFX causes game to hang - FM still plaing in background, but game freezes. When I'm using setupsa.exe from Yamaha there is no problem at all. Rest of the games are perfectly fine with your utility.
Motherboard is Intel Ninja (420EX), CPU i486DX
1) SCAMP /286@20 /4MB /TVGA9000C /CMI8330
2) i420EX /486DX33 /8MB /Trio64V+ /YMF718
3) i430HX /P233MMX /64MB /VirgeDX+3Dfx /Vibra16s
4) i440BX /P!!! 450 /256MB /TNT /AWE64
5) i865G /E3200 /1GB /Ti4200 /YMF724
zyga64
Member
 
Posts: 160
Joined: 2014-3-12 @ 14:38
Location: Poland

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-8-01 @ 00:39

Thänk you for the report, I will investigate. I even have the same motherboard to test things with.
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby James-F » 2019-8-04 @ 10:00

Hi Tiido.

Does your card fix the mixer problem described here?:
viewtopic.php?f=46&t=49990

Also, does it have a proper lowpass filter like the SBPro2 CT1600?
Since Yamaha YMF71x based cards usually don't have the proper value caps to match the LPF on the CT1600.
User avatar
James-F
Oldbie
 
Posts: 1448
Joined: 2015-11-30 @ 04:10

Re: T-04YBSC-A, new YMF71x based sound card + SETYMF utility

Postby Tiido » 2019-8-04 @ 10:19

My software does set things so that the SB level change range is maximal.

There's no SBpro2 style filter by default, all the filtering is made so that there's no meaningful attenuation in audible freq range on any sound source. You either have to change couple capacitors if want only the SB DAC output to get darker or adjust high freqs slider in SETYMF which will muffle all the sound sources (internal and external, which I imagine is how SB hardware functions, but I have no SBpro2 to actually see if that's the case and likely never will, those things are not worth the money you need to cough up for them...).

I will investigate the reported games problem today and hopefully I can come up with a fix.
User avatar
Tiido
Oldbie
 
Posts: 1067
Joined: 2018-1-14 @ 04:40
Location: Estonia

PreviousNext

Return to Sound

Who is online

Users browsing this forum: No registered users and 1 guest