About I2C Write Eeprom kl25z128

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

About I2C Write Eeprom kl25z128

1,215 次查看
陈欣
Contributor III

When I write to Eeprom100 times,every time write 1 byte.

There are about 10 times can not write into,

Why did this happen?

0 项奖励
5 回复数

1,023 次查看
陈欣
Contributor III

Thanks for all answer!

I did not solve the problem,

I use the Flash of MCU to save data.

0 项奖励

1,023 次查看
dureshasanka
Contributor II

I think, you need to add a delay after one write cycle. Because most of the eeprom takes several mS to write data in to the memory.

0 项奖励

1,023 次查看
陈欣
Contributor III

I have add delay ,10MS,20MS,200MS ,2000MS,all try ,but no ok.

0 项奖励

1,023 次查看
dureshasanka
Contributor II

HI,

I do not know whether you have solved the problem.

If you are not,

check, whether you have correctly initialize/configure the delay function of your processor.

Check whether there are any noice are in the communication lines.

Are you using correct speed of I2C of the external EEPROM.

Check the writing protocol with the EEPROM datasheet.

0 项奖励

1,023 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi,

Would you please share your driver code for EEPROM writing ? I'd like to have a review on it. Thanks for your patience!!

B.R

Kan

0 项奖励