About I2C Write Eeprom kl25z128

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

About I2C Write Eeprom kl25z128

1,209件の閲覧回数
陈欣
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,017件の閲覧回数
陈欣
Contributor III

Thanks for all answer!

I did not solve the problem,

I use the Flash of MCU to save data.

0 件の賞賛

1,017件の閲覧回数
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,017件の閲覧回数
陈欣
Contributor III

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

0 件の賞賛

1,017件の閲覧回数
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,017件の閲覧回数
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 件の賞賛