I2C Messages Sent by Spin to EEProm

Hardware questions and issues with the FV-1

Moderator: frank

Post Reply
HammerheadAudio
Posts: 11
Joined: Wed Apr 14, 2021 3:19 pm

I2C Messages Sent by Spin to EEProm

Post by HammerheadAudio »

Hi, I am wondering if there is any documentation of the I2C messages sent by the FV-1 to the EEProm chip for program loading. Like a description of what messages are sent out and what the FV-1 expects to get back, as well as a timing diagram if possible. Please let me know, thanks!
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: I2C Messages Sent by Spin to EEProm

Post by frank »

Just reads the EEPROM exactly as shown in a datasheet for the 24LC32A. Programs are in the EEPROM in order so program 0 starts at address 0 of the EEPROM.
Frank Thomson
Experimental Noize
potul
Posts: 76
Joined: Tue Sep 26, 2017 12:33 am

Re: I2C Messages Sent by Spin to EEProm

Post by potul »

HammerheadAudio wrote: Fri Jan 06, 2023 2:26 pm Hi, I am wondering if there is any documentation of the I2C messages sent by the FV-1 to the EEProm chip for program loading. Like a description of what messages are sent out and what the FV-1 expects to get back, as well as a timing diagram if possible. Please let me know, thanks!
If you are interested, there is a project posted in diystompboxes.com that emulates an EEProm chip with and ESP32 and interfaces with an FV-1. This way you can store more than 8 programs.

https://www.diystompboxes.com/smfforum/ ... c=126277.0
HammerheadAudio
Posts: 11
Joined: Wed Apr 14, 2021 3:19 pm

Re: I2C Messages Sent by Spin to EEProm

Post by HammerheadAudio »

frank wrote: Fri Jan 06, 2023 7:47 pm Just reads the EEPROM exactly as shown in a datasheet for the 24LC32A. Programs are in the EEPROM in order so program 0 starts at address 0 of the EEPROM.
Okay, would that be a sequential read as described in the datasheet?
8.3 Sequential Read
Sequential reads are initiated in the same way as a
random read, except that once the 24XX32A transmits
the first data byte, the host issues an Acknowledge as
opposed to the Stop condition used in a random read.
This Acknowledge directs the 24XX32A to transmit the
next sequentially addressed 8-bit word (Figure 8-3).
Following the final byte transmitted to the host, the host
will NOT generate an Acknowledge, but will generate a
Stop condition. To provide sequential reads, the
24XX32A contains an internal Address Pointer which is
incremented by ‘1’ upon completion of each operation.
This Address Pointer allows the entire memory
contents to be serially read during one operation. The
internal Address Pointer will automatically roll over
from address FFF to address 000 if the host
acknowledges the byte received from the array
address FFF.
How many bytes are read? And what is the expected start address for each program based on their index?
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: I2C Messages Sent by Spin to EEProm

Post by frank »

128 instruction/program * 4 bytes/instruction so 512 bytes per program

Programs are sequential in the EEPROM so program 0 is bytes 0 -511, program 1 512 - 1023, etc.
Frank Thomson
Experimental Noize
HammerheadAudio
Posts: 11
Joined: Wed Apr 14, 2021 3:19 pm

Re: I2C Messages Sent by Spin to EEProm

Post by HammerheadAudio »

frank wrote: Tue Jan 24, 2023 3:39 pm 128 instruction/program * 4 bytes/instruction so 512 bytes per program

Programs are sequential in the EEPROM so program 0 is bytes 0 -511, program 1 512 - 1023, etc.
Yes, that is clear enough but is the reading method used by the FV-1 the sequential read described in the EEPROM datasheet? Or is it reading these bytes one address at a time. That is not specified.
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: I2C Messages Sent by Spin to EEProm

Post by frank »

Sequential read
Frank Thomson
Experimental Noize
Post Reply