electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Arduino
Writing an external 24LC32A EEPROM with Arduino
Post new topic   Reply to topic
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Hashtag Octothorpe



Joined: Jun 11, 2017
Posts: 19
Location: Grand Rapids MI

PostPosted: Thu Sep 20, 2018 4:00 pm    Post subject: Writing an external 24LC32A EEPROM with Arduino Reply with quote  Mark this post and the followings unread

I've followed the directions at the [url=https://moderndevice.com/documentation/getting-started-reverbalizer/ ]Reverbalizer[/url] "hackable multi-effect DSP."

The sketch I'm using to program the 24LC32A is this sketch and the ROMs here.


I've got the EEPROM in a Nano, with the "ground" pin to A3 written in void setup() to LOW, SDA and SCL of the EEPROM to A4 and A5, the write-protect pin goes to A6 and is written LOW in void setup(), and the power pin goes to A7 which is written HIGH.

HOWEVER,

I'm getting nothing but FF FF FF FF when I read the EEPROM that I supposedly "wrote". Even with the EEPROM not even connected, I get the same result, which is not useful for troubleshooting argh.

Any help??? I just double-triple checked that I have SDA and SCL the right way around and I do.

The sketch specifies 24LC64 and I'm using a 24LC32, could that be it????
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 781
Location: Netherlands
Audio files: 23

PostPosted: Thu Sep 20, 2018 10:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

start with hard wiring the gnd and vcc, leave the wp open, place a ~100NF cap close to the power pins of the memory and try again.
i/o pins are not good for powering chips due to its relative high impedance, especially if you don’t place a capacitor close to its power pins!

_________________
my synth
Back to top
View user's profile Send private message Visit poster's website
Hashtag Octothorpe



Joined: Jun 11, 2017
Posts: 19
Location: Grand Rapids MI

PostPosted: Fri Sep 21, 2018 1:39 am    Post subject: Reply with quote  Mark this post and the followings unread

You were right about the i/o pins, it's working now, at least I can write and read to it.

Next hurdle, oh my word this confuses me no end:

This is a Spin Semiconductor FV-1 programmable DSP chip. It looks on the EEPROM for programs to run. The programs compile to assembly, which in the IDE looks like:

Code:
0000      80400011   :skp run,2
0001      01B00112   :wlds SIN0,27,excursion
0002      21700112   :wlds SIN1,23,excursion
0003      40000204   :rdax pot0,1
0004      0000020A   :mulx pot0


Which is assume is something like "address" then four hex couplets, then a comment to make it human-readable.

I've got some programs ready to be written to EEPROM with the Reverbalizer sketch, which look like this:

Code:
const unsigned char ROM_06[] PROGMEM = {
0x80,0x20,0x00,0x11,
0x40,0x00,0x00,0x72,
0x7F,0xEF,0x02,0x04,


etc. etc., which has the commas and the 0x prefix for the hex couplets.

So what needs to go on the EEPROM? The minus-commas-and-0x machine code?

I'll keep working on it!!!!![/code]
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 781
Location: Netherlands
Audio files: 23

PostPosted: Fri Sep 21, 2018 1:45 am    Post subject: Reply with quote  Mark this post and the followings unread

Dunno...
But there are DSP forum members, maybe they can chip in?

_________________
my synth
Back to top
View user's profile Send private message Visit poster's website
Hashtag Octothorpe



Joined: Jun 11, 2017
Posts: 19
Location: Grand Rapids MI

PostPosted: Fri Sep 21, 2018 8:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

After hacking and hacking, I just installed the FV-1 based module in my synth to mess with the stock DSP programs and having a real reverb is ***OUTRAGEOUSLY GOOD!!!!!***

Oh my word.

BTW, Grumble, I love your synth! I'm adding Arduinos to my modular as fast as I can dream up new uses for them. My next project will be a couple 8-key tunable keyboard type switch arrays and CV recorders to loop whatever I manage to get out of them!

Here's my synth!!![/quote]
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 781
Location: Netherlands
Audio files: 23

PostPosted: Fri Sep 21, 2018 9:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yes! Watched your synth on youtube extensively and really like it!
_________________
my synth
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Arduino
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use