Author |
Message |
Hashtag Octothorpe
Joined: Jun 11, 2017 Posts: 57 Location: Grand Rapids MI
|
Posted: Thu Sep 20, 2018 4:00 pm Post subject:
Writing an external 24LC32A EEPROM with Arduino |
 |
|
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
|
|
 |
Grumble

Joined: Nov 23, 2015 Posts: 1310 Location: Netherlands
Audio files: 30
|
Posted: Thu Sep 20, 2018 10:23 pm Post subject:
|
 |
|
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
|
|
 |
Hashtag Octothorpe
Joined: Jun 11, 2017 Posts: 57 Location: Grand Rapids MI
|
Posted: Fri Sep 21, 2018 1:39 am Post subject:
|
 |
|
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
|
|
 |
Grumble

Joined: Nov 23, 2015 Posts: 1310 Location: Netherlands
Audio files: 30
|
Posted: Fri Sep 21, 2018 1:45 am Post subject:
|
 |
|
Dunno...
But there are DSP forum members, maybe they can chip in? _________________ my synth |
|
Back to top
|
|
 |
Hashtag Octothorpe
Joined: Jun 11, 2017 Posts: 57 Location: Grand Rapids MI
|
Posted: Fri Sep 21, 2018 8:47 pm Post subject:
|
 |
|
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
|
|
 |
Grumble

Joined: Nov 23, 2015 Posts: 1310 Location: Netherlands
Audio files: 30
|
Posted: Fri Sep 21, 2018 9:10 pm Post subject:
|
 |
|
Yes! Watched your synth on youtube extensively and really like it! _________________ my synth |
|
Back to top
|
|
 |
|