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.

LMK05318: R39 (SPARE_NVMBASE_BY2)

Part Number: LMK05318

Dear Sir:

  About the LMK05318, we have 2 questions below.

1)  In the SNAU237A (LMK05318 Registers) document, page-1, it said:

   >>  0x27    R39    SPARE_NVMBASE2_BY2

  After we go to the Chapter 29  R39 Register, it describes the bit[1] of the register is for GPIO2_OUT.

 Q1-1) Does the SPARE_NVMBASE2_BY2 mean the GPIO2_OUT?

2) In the datasheet of LMK05318, Chapter 9.5.6.2.2 User-Programmable Fields in EEPROM, it mentioned 4 bytes (NVM_SPARE_BY0/1/2/3).

Q2-1) Could you tell us the according registers (Rxxx) for the 4-byte in EEPROM?

  Thank you.

Best Regards.

  • Hello Hank,

    hank chu said:
     >>  0x27    R39    SPARE_NVMBASE2_BY2

    You're right, this name is a confusing since this register does control GPIO2 as described.  The names defined for the actual fields of the register are correct.  This "register name" is an attempt to describe all the fields of a specific byte and is often repeated.  I'll put a note in to have this updated to a better name.

    hank chu said:
    Q2-1) Could you tell us the according registers (Rxxx) for the 4-byte in EEPROM?

    There are no registers for those addresses.  To read them you would need to setup MEMADR = 249, 250, 251, or 252 then read from NVMDAT register to access the contents of that EEPROM byte.

    When writing EEPROM...

    if you use the method, 9.5.6.2.1 Write SRAM Using Direct Writes, you would be able to write SRAM address 249, 250, 251, and 252 as apart of this SRAM programming, then commit SRAM --> EEPROM.

    If you use the method, 9.5.6.1.1 Write SRAM Using Register Commit...

    • after you commit the registers to SRAM, then
    • you can set MEMADR = 249, 250, 251, or 252 as desired and write the desired value for this EEPROM bytes to RAMDAT. 
    • Then commit SRAM --> EEPROM.

    73,
    Timothy

  • Dear Timothy:

      Thank you for your kind support.

      Please do us a favor to close this case.

      Have a nice day.

    Best regards.