Bigger size eeprom for BS2
ion
Posts: 101
I made a stamp 2 from an OEM kit.
My question is if I can use a bigger memory chip then one supplied with the kit.
I would like to store data beyond the 2k boundary and leave the all 2k for the·program.
I do not have a clue how to shiftin text, and I did not found any example on that in the manual, so using a serial eeprom beside the supplied one is impossible. Beside that, the number of variable used for program is almost at the end and I do not have room to create an array.
An example of text which I would like to read from and external eeprom it will look like this:
"^FS^ABN,22,8^FO4,171^FDLWR EATC APPLIQUE-CORONADO APELE^FS^XZ"
Moreover, my headache does not stop here. I want to be able to write to that external eeprom text too. Too much trouble. BS2 does not support I2C so no way to use it.
Any help, directions or portion of code applied to my problem will be greatly appreciated
Thank you
Ion
My question is if I can use a bigger memory chip then one supplied with the kit.
I would like to store data beyond the 2k boundary and leave the all 2k for the·program.
I do not have a clue how to shiftin text, and I did not found any example on that in the manual, so using a serial eeprom beside the supplied one is impossible. Beside that, the number of variable used for program is almost at the end and I do not have room to create an array.
An example of text which I would like to read from and external eeprom it will look like this:
"^FS^ABN,22,8^FO4,171^FDLWR EATC APPLIQUE-CORONADO APELE^FS^XZ"
Moreover, my headache does not stop here. I want to be able to write to that external eeprom text too. Too much trouble. BS2 does not support I2C so no way to use it.
Any help, directions or portion of code applied to my problem will be greatly appreciated
Thank you
Ion
Comments
While the·stock BS2 doesn't have internal I2C commands, it's very easy to add them -- I use I2C components with BS2 modules all the time; it's not difficult at all to do, it just requires a bit of patience. If you do a search, you'll find a bunch of I2C examples that I've uploaded, all of them run on the BS2. I've attached one to this message, it works with a 24LC256 I2C EEPROM.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 10/8/2004 4:31:24 AM GMT
I am reading now exp.32 from Stamp Works.
It is a good example of what you suggest, even tough does not cover string related subjects. I searched with Google to find examples for literal strings I2CIN or I2COUT, but no luck. So I decided to use a plain BS2 and use WRITE and READ instead, which does the job. I put on the side (for better times) the last 15 BS2PE from Parallax and I went back to my collection of BS2.
An other annoying thing using BS2 , beside the limited memory, is the limited program space. Your example, or other ( I believe are yours too, looking at the style ) take a big chunk of space and is not enough left for my portion of code.
Do to my limitations on stamp knoledege or luck of finding the right information, I just bought from Rentron the Flash Lab 77 with the intention to migrate to Pics using Pic Basic Pro.
Thank you for support. I will experiment tonight on your example.
Ion