PDA

View Full Version : I2CWRITE/READ improve for EEPROM



Josuetas
- 16th September 2006, 01:15
Hi!!
I was working with an external memory and I2C today, there is no page control in the instruction, so if I send an array that happens to cross the page of the memory the data is overwritten in the same page of memory.
The only solution would be to write one byte at the time but it could result in a lot of waiting for the eeprom to write, a huge delay because for example a 50 bytes array would result in 500ms of wait.

An improve could manage the pause for page change to allow me to simply write arrays to any address of the memory.

In my case i had to write 8 bytes at the time wich hugely reduced the delay but it still isn`t the best solution.

I Hope this helps you guys, and thanks by the way!!.