TI中文支持网
TI专业的中文技术问题搜集分享网站

LMK03318配置写入EEPROM问题

我按照以下步骤尝试写EEPROM,但是不能生效,掉电配置还会丢失,求解是哪里出了问题?

1. Program the device registers to match a desired setting.
2. Write R145[3:0] with a valid SRAM page (0 to 5) to commit the current register data.
3. Write a 1 to R137.6. This ensures that the device registers are copied to the desired SRAM page.
4. If another device setting is desired to be written to a different SRAM page, repeat steps 1-3 and select an
unused SRAM page.

 

1. Make sure the Write SRAM procedure (Write SRAM) was done to commit the register settings to the SRAM
page(s) with start-up configurations intended for programming to the EEPROM array.
2. Write 0xEA to R144. This provides basic protection from inadvertent programming of EEPROM.
3. Write a 1 to R137.0. This programs the entire SRAM contents to EEPROM. Once completed, the contents in
R136 will increment by 1. R136 contains the total number of EEPROM programming cycles that are
successfully completed.
4. Write 0x00 to R144 to protect against inadvertent programming of EEPROM.

 

操作步骤如下:

1.用code loader生成register值,通过i2c写入register

2.R145写0x5

3.R137写0x40  (Write a 1 to R137.6)

4.R144写0xEA

5.R137写0x1

6.4.R144写0x00

 

写完之后R136值为1,R137值为1

 

Kailyn Chen:

请问您用的是EVM板还是自己的板子?您写的是EEPROM Page 几?EEPROM一共6个page,如果您想写Page0的话,GPIO2和GPIO3 都需要下拉。

赞(0)
未经允许不得转载:TI中文支持网 » LMK03318配置写入EEPROM问题
分享到: 更多 (0)