Shop OBEX P1 Docs P2 Docs Learn Events
EEPROM question. — Parallax Forums

EEPROM question.

BTXBTX Posts: 674
edited 2012-04-18 07:04 in Propeller 1
Hi all, I'm back again.

I'm stuck on this....
If I change, my 24LC256 eeprom in my pchip board for a 24LC512, can I read and write addresses until $FFFF using the Basic_I2C_Driver.spin code ? Or I need some special code for this ?

Thx in advance.
Alberto.

Comments

  • Dave HeinDave Hein Posts: 6,347
    edited 2012-04-18 06:55
    Basic_I2C_Driver should work fine. For higher speed you can use Pasm_I2C_Driver that has the same method calls as Basic_I2C_Driver, but uses an extra cog running a PASM driver.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-04-18 06:56
    I don't think you need any special code.

    If you try to read higher than $7FFF on a 24L256 it wraps around and reads from a lower address. The 24LC512 will read from the actual address.

    I have a program that tests EEPROM size by checking if this wrap around occurs or not.
  • BTXBTX Posts: 674
    edited 2012-04-18 07:04
    Thank you so much guys, I'll change it SMD eeprom in the board and try !!
Sign In or Register to comment.