expanding eeprom space? (I2C EEPROM connection and usage help needed)
kroki
Posts: 21
Hi!
Could anyone please help me with my problem?:
I·bought a BS2sx IC for the speed a few months ago.
But in between i figured, that i need more program DATA space!
Is there a way to interface a serial (I2C) EEPROM to the BS2? I need to store many data in it!
i try to use a same one, that's in the SX IC, but have no interface mode found.
Best regards:
Kroki
Could anyone please help me with my problem?:
I·bought a BS2sx IC for the speed a few months ago.
But in between i figured, that i need more program DATA space!
Is there a way to interface a serial (I2C) EEPROM to the BS2? I need to store many data in it!
i try to use a same one, that's in the SX IC, but have no interface mode found.
Best regards:
Kroki
Comments
If you just want to store more data, you can either use empty space in your program slots, or use an external EEPROM:
http://www.parallax.com/detail.asp?product_id=602-00008
And if 8k isn't big enough, you can get an EEPROM that interfaces the same way, but has up to 64k memory.
Dave
I know i was a little bit confusing, but this was the first time I wrote in this Forum, and I have only bad memories of forums like this.
I need more data space, and a serial EEPROM looks promising, but i don't know how to connect and usi it in program with the BS2SX.
as I know only the BS2p and above has I2C commands.
This is what I need help with!
Thanx
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 12/10/2004 3:01:58 PM GMT
I'll try it as soon as i get home from work:-)
Sorry to ask u again, but i have a question:
I connected the SDA to pin 8 and SCL to pin 9.
The sample is for 24LC256, but i haveLC128.
Is it enough if I change the pins and expressions, or i have to change something in lines like these:
EE24LC256·············· CON········ %1010· << 4
devNum = %000····················································· ' chip select (%000 - %111)
slvAddr = EE24LC256 | (devNum << 1)······················· ' setup slave ID
addrLen = 2··························································· ' 2 bytes in word address
And do i have to use 4 lines for 2 EEPROM's?
Thanx for the anwser if possible.
Best regards:
Kroki
The code is written so that yu can address up to 8 devices -- put the device number (0 - 7) in the variable devNum.
You only need two lines (SDA and SCL) for your I2C devices; the whole point of I2C is a shared bus. You probably should do a bit of research to learn how the bus works before attempting to implement it.· This article may help:
http://www.parallax.com/dl/docs/cols/nv/vol5/col/nv115.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
In between i did a little research, and found the specification of I2C and th 24LC128 datasheet.
Thanx again, and sorry for bothering!
Kroki