KingMoshe
Member level 2
- Joined
- Aug 10, 2021
- Messages
- 48
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Activity points
- 362
Hi,It's also common to have a set of default EEPROM parameters compiled into the FPGA that take effect unless new parameters have been written from the application.
My favorite method is to keep the parameters in a FPGA RAM block. EEPROM parameters are conditionally read to the RAM during startup depending on a specific flag or e.g. valid CRC of EEPROM content.
Asking how to process text files would be rather dedicated to the Elementary Electronic Questions sections...But my question is how to write all the parameters to the EEPROM from TXT file on my computer before I read them.
The parameters are not fixed, the TXT file is change every time.
Of course pull up resistors exist.Hi,
I2C needs pull-up resistors.
The exact EEPROM type is a secret? This makes a detailled discussion difficult.
Why a bridge SPI --> I2C, when there are SPI_EEPROMs?
SPI as well as I2C could be MUXed so you can read/write them via an external device.
Klaus
you right, the EEPROM have 16 pages, for me it is OK to write each parameter separately. the question is how to write from txt file directly to the eeprom, or how to write from txt file directly to the FPGA and then I can use the I2C communication that I already implemented between the FPGA and EEPROM.Hi,
EEPROM details:
I may be mistaken, but I think there are differnt page sizes even on 24Cxx EEPROMs. So one maybe can not write all 256 bytes in a row. Maybe page by page...
Klaus
Lets say I need to write only one parameter (parameter = 8 bit of DATA) from txt file to the EEPROM or to the FPGA, how can I do it ?I see. These details have to be considered, but are belonging to the low level memory interface. Page size of standard EEPROM is 256 byte or 128 words, depending on the chosen memory organisation. 256 "parameters" might refer to 256 words or even double words , in so far writing all parameters can translate to writing multiple pages.
I believe the question has been already answered.That is my question, how to read and write from the eeprom with external device? what is my options? I need to write from txt file.
w<hex address> <hex data><CR>
The FPGA implements SPI Communication with the DSP as described in the scheme above. (user logic SPI)Consider the FPGA implements an UART interface and a serial command shell.
A write command could have the form
Code:w<hex address> <hex data><CR>
Different addresses may access internal registers, RAM blocks or directly map to EEPROM writes.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?