Shop OBEX P1 Docs P2 Docs Learn Events
Expanding the BS2sx EEPROM — Parallax Forums

Expanding the BS2sx EEPROM

leshea2leshea2 Posts: 83
edited 2005-10-04 00:03 in BASIC Stamp
If I want to write some information to the BS2sx EEPROM using the data command and there's not enough space, is there a way that I can expand the BS2sx EEPROM if I buy some extra SX Microcontrollers and connect them together, so they act like one single microcontroller ?

Thanks !

·

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-09-14 20:00
    No need, you can simply add external I2C EEPROM for as much data storage as you want.· I've attached a demo.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • southernbobsouthernbob Posts: 34
    edited 2005-09-15 18:35
    Jon, can you please attach the BS2p version: SW20-EX32-24LC32.BSP?

    Thanks, Bob
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-09-15 20:34
    Sure -- be sure to lookup the I2COUT and I2CIN instructions, as well as looking over the 24LC32 datasheet.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • leshea2leshea2 Posts: 83
    edited 2005-09-16 19:16
    Since I have the BS2sx, is there a certain kind of EEPROM that I have to use, in order for everything to work together right ?

    Thanks !
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-09-16 19:29
    You can use an SPI EEPROM with SHIFTOUT/SHIFTIN (if you can find one), or an I2C EEPROM with the code I supplied. The demo is specific to the 24LC32 (4K) EEPROM, but easily adapted to any other I2C EEPROM.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • leshea2leshea2 Posts: 83
    edited 2005-09-20 17:36
    You said that The demo is specific to the 24LC32 (4K) EEPROM, but the only EEPROM I can find is the 24LC256 from Microchip, will this one do, will it work fine with the BS2sx and with the demo code after adjusting the code if necessary ?

    Thanks !
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-09-20 17:46
    The 24LC256 is bigger, so you have to accommodate that with your addressing, but otherwise the code turns out to be the same.· I've attached a demo for the '256.· Please compare it to the 24LC256 documentation, this will help you understand why the code does what it does.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-09-20 17:47
    The 24LC32 can be found at the link below.

    http://www.parallax.com/detail.asp?product_id=604-00020

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • leshea2leshea2 Posts: 83
    edited 2005-10-03 18:23
    What command reference do I use to load data to another EEPROM, like the 24LC512 64kx8 Microchip Serial EEPROM ? Can I use serout or shiftout ? I ask because in the Basic Stamp manual, it says that the I2CIN and I2COUT commands are only for the BS2p and the BS2pe, so what command should I use ?

    Thanks !
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-10-03 20:34
    If you look at the code I posted above (it's attached to a response) you'll see the I2C commands are synthesized with SHIFTOUT and SHIFTOUT. That program will have to be modified for the 24LC512 addressing, and that is entirely possible.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • leshea2leshea2 Posts: 83
    edited 2005-10-03 22:03
    Is it possible to use the serout command instead of the shiftout to load data to another EEPROM ?
    Thanks !
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-10-04 00:03
    No -- please refer to my previous reponses; all of the information you need to connect to a 24LCxxx EEPROM has been provided.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.