This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OPT3101: Store of OPT3101-Setup on EEPROM

Part Number: OPT3101

Hi,

I need some clearification on the EEPROM thath is connected to the OPT3101 Master I2C-bus.

In the data-sheet, page 32, you write, all of the registers (256 Bytes) are loaded from external EEPROM during startup. 64 bytes are adresses (OPT3101 register address), and 192 bytes are data.

In short: 64 OPT3101 registers are loaded from EEPROM into OPZT3101 after startup.

Which registers are these? The opt3101 has many more registers than just 64.

  • Hi Markus,

    A register address is stored in the EEPROM along with the data. This address is what indicates the register that is loaded with the provided data. Specifically Table 27. External EEPROM Data Format on page 32 shows this scheme.

    Best,

    Alex

  • Hi Alex,

    the format of storing data is clear to me. However, 256 bytes are loaded into OPT from EEPROM (as stated in the datasheed on page 32 also), that's 64 registers. I was wondering which registers of those in Table 29 are loaded, since this table contains much more than just 64 adresses.

    Regards,

    Markus

  • Hi Markus,

    The eeprom format includes both register address and register data. You have to specify the address of the register you are wanting written when you write to the EEPROM. So you write into the eeprom both the register address and the register data. When the OPT3101 loads from the eeprom it looks at the address you put and writes the data you put into this address. The address is how you indicate which register from table 29 you want the corresponding data written to. The OPT3101 does not have a list of set registers to load from the EEPROM. You indicate both which registers you want loaded and the data you want written.

    Best,

    Alex

  • Hi Alex,

    ok, thanks for the explanation.

    So the device starts reading the eeprom after reset, starting at eeprom-address 0x000. As soon as it finds an address 0xff the process of copying data stops. So the user is completely free to choose the registers he wants to store and also the order  they are stored in the eeprom.