Shop OBEX P1 Docs P2 Docs Learn Events
I2C Memory addressing with 24LC512 with BS2 — Parallax Forums

I2C Memory addressing with 24LC512 with BS2

Ken SchilstraKen Schilstra Posts: 1
edited 2007-03-26 20:40 in BASIC Stamp
I'm interfacing BS2 with a 23LC512 for collection of data from a/d converter on a measurement device,
but, I'm missing something.· If I have a 24LC512 and I send the word as 2 bytes how do I address memory·on the chip above 64K?· I would appreciate a hint on how to do this and where to go read.

It's probably so obvious.

thanks in advance
Ken

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-26 20:40
    First of all, the chip is a 512K bit chip, not a 512K byte chip, so the address is from 0-64K and you will do just fine with a 2 byte address. If you switched to a larger chip (like the 24LC1024 which is a 128K byte chip, the chip looks like two different 64K byte devices to the Stamp and you'd program accordingly with two different device select addresses used (look at the EEPROM datasheet for details).
Sign In or Register to comment.