Jump to content

Recommended Posts

Posted

I got an STM32 and SID module from smashTV. I played with STM32 and the tools. I simply love it. My next step is to connect the SID module to the stm32.

What is the optimum way to make the connections between the stm32 and the sid?

Should I use J19 on stm32 and follow the pin-connections in the sid.h/sid.c defaults (under modules/ directory)?

I wonder if I need to follow a specific pin-out to get the benefits of stm32, i.e. clock outputs and serial outputs.

thanks,

Posted

I wish the connections were 1-1 so a straight ribbon cable would have worked, but it needs a slight re-pinout. This is what I did after reviewing the core, sid and core32 schematics (and the unofficial_sid_v4 from luke).

STM32/J19 pin name = SID Module pin name

RC1 = RCLK

RC2 = CS#

SC = SCLK

SO = MU (or SER)

SI = CLK

5V = 5V

VSS = VSS

It worked the first time. I got 1kHz from my SID 6581. Horraayyyy

Next step is to figure out how to play SID files from either SIDPLAYER or from a SDCARD hooked up to the STM32.

the latter shouldn't be that difficult, right? (am I dreaming?) I found a piece of code searching either this forum or other, that outputs SID register writes while processing a SID file. (siddump at http://covertbitops.c64.org/). If we can port this code to stm32 and let it dump the files into the sid directly, it should work?

Great job to TK and others btw, stm32 & tols are great.

post-7723-127537134184_thumb.jpg

Posted

Great that you got it working! :)

SID Player: the problem is that it has to run a C64 emulation for playback, because a .sid file contains the original sound player routine that has to be processed by a virtual 6510.

For compatibility reasons, this would require at least 64k RAM + the RAM for MIOS32, the SD Card routines, etc.

So, no chance to do this with a STM32 so long you don't use an external RAM as storage.

A better solution is to use a tool like "siddump" to write SID register values and delays between write accesses into a file.

Your MIOS32 app could read this file from SD Card and process it.

Some time ago I wrote a small perl converter script to process the siddump output, you could use it as a basis for your own converter.

The script is available here: http://www.ucapps.de/howto_sid_wavetables_1.html

Best Regards, Thorsten.

P.S.: I gave you access to the programmer's lounge.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...