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.

LMK05318B: SRAM map

Part Number: LMK05318B
Other Parts Discussed in Thread: LMK05318

Hi,

I wish to configure the EEPROM using "method #2"(direct writes). Meaning writing to SRAM byte by byte, program EEPROM and the configuration will be active on next POR.

I don't want to write directly to the registers space because it will effect immediately.

What is the relation between register number and SRAM address?

e.g. I wish to set R233 (PRIREF) to 0xAA. In which address does SRAM holds the value that will be program to EEPROM and loaded to R233 at next POR?

PS - Table 9.9 in DS specify the following address as "user programmable" 5,11,249,250,251,252 in TICS Pro SW the address are 10,11,249,250,251,252. Which one is correct?

BR,

Ofir.

  • Hello Ofir,

    For method #2, direct SRAM programming, it is recommended to program the whole SRAM and not just a single byte. This can be done via the directions provided under method #2 EEPROM programming section of the datasheet. In order to generate the full SRAM map, simply use TICSpro, Once you have the configuration you want, by clicking "(1)Commit registers & Extra EEPROM bytes --> Chip SRAM" and you will see the whole mapping for your configuration appear on the right side. Please note that the SRAM content are unknown unless specifically programmed, this is another reason that programming of all bytes is recommended. Otherwise on power up it will have some random values and you might end up programming a nonvalid configuration into EEPROM if you just try a single byte.

    Alternatively, if a single register change is all you need, you can follow method #1. Update the register (this will cause a change to the configuration immediately as you have noted), and then copy the register configurations into SRAM (1 register write) and then copy SRAM into EEPROM (same as it would be with method #2).

    Thanks and regards,

    Amin

  • Thank you! 

    PS - Table 9.9 in DS specify the following address as "user programmable" 5,11,249,250,251,252 in TICS Pro SW the address are 10,11,249,250,251,252. Which one is correct?

    BR,

    Ofir.

  • Hi Ofir,

    Perhaps you're looking at an older version of the datasheet? We recently updated this online to correct, it should be fields 10, 11, and 249 - 252:

    Your post mentions LMK05318B, but it could also be you're looking at LMK05318 (no B) version online. That correction to that datasheet has not been made yet, but it would be the same, bytes 10, 11, 249 - 252.

    One more note to bring up here, bytes 249 - 252 have no register allocation, so to program you must program the SRAM directly. If you go via method #1, after you've copied the registers into SRAM, you must then program those SRAM bytes if you want any changes (copy register to SRAM doesn't write anything into those bytes since there's no register to copy over). Bytes 249 - 252 do not change anything about the configuration, they are meant for customer to use for any information/revision tracking they would like. Also note, the only way to read the contents of these bytes on subsequent power ups is to read from EEPROM directly as again there's no register allocation (where as EEPROM byte 10 and 11 correspond to register 10 and 11 - read only registers which you can read the contents of on subsequent power ups).

    Thanks and regards,

    Amin