Cluso99
01-21-2009, 01:22 PM
I am writing the I2C code to read and write the AT24C512 (or others) on the Prop Proto Board for use with the (thread)...
Post Boot PASM COG Loader?·· http://forums.parallax.com/showthread.php?p=776824
Can anyone answer the following question:
Before using the eeprom, I think it wise to ensure the eeprom is in a proper initialisation state. This can be achieved by sending 9 clocks (SCL) and checking if the SDA is high while SCL is high. Code I have seen truncates the number of clocks when SDA returns high. Then a START condition is sent. The data sheets do not spell out an answer to my question. Is there anything wrong with continuing the full 9 clocks? I believe this will not cause a problem, and if so I can considerably shorten my code by reusing a routine.
FYI: I have parameterised the driving of the I2C so the page size is set by the user program. When done I will post the code here. http://forums.parallax.com/images/smilies/cool.gif
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Prop Tools under Development or Completed (Index)
http://forums.parallax.com/showthread.php?p=753439
My cruising website http://www.bluemagic.biz
Post Boot PASM COG Loader?·· http://forums.parallax.com/showthread.php?p=776824
Can anyone answer the following question:
Before using the eeprom, I think it wise to ensure the eeprom is in a proper initialisation state. This can be achieved by sending 9 clocks (SCL) and checking if the SDA is high while SCL is high. Code I have seen truncates the number of clocks when SDA returns high. Then a START condition is sent. The data sheets do not spell out an answer to my question. Is there anything wrong with continuing the full 9 clocks? I believe this will not cause a problem, and if so I can considerably shorten my code by reusing a routine.
FYI: I have parameterised the driving of the I2C so the page size is set by the user program. When done I will post the code here. http://forums.parallax.com/images/smilies/cool.gif
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Prop Tools under Development or Completed (Index)
http://forums.parallax.com/showthread.php?p=753439
My cruising website http://www.bluemagic.biz