Author Topic: TI84+ soundchip - arduino SID emulator  (Read 40776 times)

0 Members and 1 Guest are viewing this topic.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TI84+ soundchip - arduino SID emulator
« Reply #75 on: March 29, 2013, 08:33:49 am »
You do not need an arduino emulator, but you need something that emulates the SID soundchip and the link protocol.
If you like my work: why not give me an internet?








Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: TI84+ soundchip - arduino SID emulator
« Reply #76 on: March 29, 2013, 08:52:04 am »
Also I really gotta get an Arduino like right now. :P Because that sounds awesome. (pun intended)

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TI84+ soundchip - arduino SID emulator
« Reply #77 on: March 29, 2013, 08:57:57 am »
Great! You can find the sourcecode and schematics here:
http://8times8.host56.com/?p=98
There is a zipfile with all the resources you need.
If you like my work: why not give me an internet?








Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: TI84+ soundchip - arduino SID emulator
« Reply #78 on: March 29, 2013, 09:08:53 am »
Thanks. I wonder if this can be ported to the RasPi too, 'cause that's what I have right now. :P Not really suited for this, but hey ! quick testing !

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TI84+ soundchip - arduino SID emulator
« Reply #79 on: March 29, 2013, 09:30:37 am »
The sid library is timer interrupt driven and the link protocol is external interrupt driven. If you can figure out a way to use interrupts on the RPI you can try to port it.
If you like my work: why not give me an internet?








Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TI84+ soundchip - arduino SID emulator
« Reply #80 on: December 18, 2013, 07:14:13 am »
Working on this again :D
I use hardware SPI for the data transfer now! It is super fast! It is unidirectional though. I2C would be bidirectional, but it is a bit harder to set up. I might change it to I2C some day.

Edit: I got it working and it is much faster, cleaner and more reliable than ever before!
« Last Edit: December 18, 2013, 08:27:27 am by Keoni29 »
If you like my work: why not give me an internet?








Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TI84+ soundchip - arduino SID emulator
« Reply #81 on: December 20, 2013, 07:58:03 am »
Allright I had to scrap some things in order to make it work, but now we're golden (hopefully)
I am polling the SPI registers in order to receive bytes with the arduino. This is because the interrupt driven method was not ideal in this situation. Bytes would get lost because the SID emulator's timer interrupt was blocking the SPI interrupt.

As long as there is enough delay in between writes it's fine. I imagine you could use interrupts on the calculator to send one byte at a time and still have plenty of cycles left for your program.

I also wrote a PC program that allows you to convert any data to an appvar. I used it to convert SID dump files to appvars. I successfully played one back. I need some kind of compression though cause those dump files are huge.

Edit: The sawtooth wave of the emulator sounds terrible, so I am probably going to have to rewrite some of the emulator's code. I hope I will be able to pull that off without breaking something in the process :P I am taking out my scope to try to find out what is wrong with it.
« Last Edit: December 20, 2013, 02:38:47 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TI84+ soundchip - arduino SID emulator
« Reply #82 on: December 22, 2013, 09:44:00 am »
Update: Playing back register dumps on my calculator. Finally :D

Song in the video is from r-type.
If you like my work: why not give me an internet?








Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: TI84+ soundchip - arduino SID emulator
« Reply #83 on: December 22, 2013, 10:06:27 am »
So, assuming I get an arduino/get the right parts for Christmas, I'm definitely going to build this! :D

Great job, Keoni!
I am Bach.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TI84+ soundchip - arduino SID emulator
« Reply #84 on: December 22, 2013, 10:08:39 am »
I will be working on a lightweight chiptune player interrupt routine. You can just slap that on a game and have instant music (given you have a soundchip plugged in). How bout that?
If you like my work: why not give me an internet?








Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: TI84+ soundchip - arduino SID emulator
« Reply #85 on: December 22, 2013, 10:10:49 am »
* pimathbrainiac thinks it will become useful for VVVVVV :D
I am Bach.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: TI84+ soundchip - arduino SID emulator
« Reply #86 on: December 22, 2013, 10:25:18 am »
That's pretty awesome Keoni! :D

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TI84+ soundchip - arduino SID emulator
« Reply #87 on: December 22, 2013, 05:30:55 pm »


I found out about hardware scrolling on the z80 calcs a while ago. I did some experimentation and this is the result. It is incredibly fast. The main loop has a Pause 200 in it. It just rotates the screen now but in the future new rows will be placed at the edge of the screen. Scrolling and the cursor work now.

Edit: Added poll
« Last Edit: December 22, 2013, 07:55:16 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: TI84+ soundchip - arduino SID emulator
« Reply #88 on: December 27, 2013, 08:10:38 pm »
So I'm in the process of building one of my own. I'll post how it goes later :D
I am Bach.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TI84+ soundchip - arduino SID emulator
« Reply #89 on: December 29, 2013, 04:32:02 am »
New version finally released!
http://8times8.host56.com/?p=372
If you like my work: why not give me an internet?