Shop OBEX P1 Docs P2 Docs Learn Events
Interface USB memstick to bs2? — Parallax Forums

Interface USB memstick to bs2?

ArchiverArchiver Posts: 46,084
edited 2004-07-06 20:01 in General Discussion
In a message dated 7/3/2004 4:19:54 PM Eastern Daylight Time,
dntgvasht@y... writes:


> I have a rather large program to make, and just putting in the
> dialogs has completely filled the eeprom mem on the stamp. I want to
> interface the stamp with an eeprom usb memory stick, to hold program
> dialog data which will free up onboard eeprom for the actual
> program. Does anyone have any information that will help me
> interface with a usb memstick? interfacing, protocols, timing,
> anything will help.
>
>

First off, you can not store program code anywhere but on the Stamp itself.
A BS2E has storage for 16K of program - eight 2K slots. If you need more
room than that then I wouldn't know where to tell you to look.

Sid


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-07-03 20:12
    I have a rather large program to make, and just putting in the
    dialogs has completely filled the eeprom mem on the stamp. I want to
    interface the stamp with an eeprom usb memory stick, to hold program
    dialog data which will free up onboard eeprom for the actual
    program. Does anyone have any information that will help me
    interface with a usb memstick? interfacing, protocols, timing,
    anything will help.

    why usb? well it's relatively available, cheap, and uses only 2 I/O
    pins.

    I have heard that interfacing with USB is a nightmare though, so if
    anyone has an alternate way of storing the data, please educate me.
  • ArchiverArchiver Posts: 46,084
    edited 2004-07-03 22:23
    Hi,

    You could use the BS2p or the BS2pe which have 8 or 16 banks of EEPROM
    memory respectivly. That is 16kBytes or 32 kBytes instead of the 2 kB a BS2
    has.

    Regards and success,

    Klaus
    Original Message
    From: <dntgvasht@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, July 03, 2004 9:12 PM
    Subject: [noparse][[/noparse]basicstamps] Interface USB memstick to bs2?


    > I have a rather large program to make, and just putting in the
    > dialogs has completely filled the eeprom mem on the stamp. I want to
    > interface the stamp with an eeprom usb memory stick, to hold program
    > dialog data which will free up onboard eeprom for the actual
    > program. Does anyone have any information that will help me
    > interface with a usb memstick? interfacing, protocols, timing,
    > anything will help.
    >
    > why usb? well it's relatively available, cheap, and uses only 2 I/O
    > pins.
    >
    > I have heard that interfacing with USB is a nightmare though, so if
    > anyone has an alternate way of storing the data, please educate me.
    >
    >
    >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-07-03 22:32
    The upper 8 banks on the BS2pe cannot be used for code space; they can
    only be used with READ and WRITE instructions (use STORE to point to the
    required bank).

    Jon Williams
    Parallax


    Original Message
    From: K de Jong [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=QHQuArSWKpfOoicqxMR0s97HCOYKPxtCKhpPs780MBG2H1dMJfmyWdxKej696IXT9_bUgPitK2Q5]klaus0@x...[/url
    Sent: Saturday, July 03, 2004 4:23 PM
    To: basicstamps@yahoogroups.com
    Subject: Re: [noparse][[/noparse]basicstamps] Interface USB memstick to bs2?


    Hi,

    You could use the BS2p or the BS2pe which have 8 or 16 banks of EEPROM
    memory respectivly. That is 16kBytes or 32 kBytes instead of the 2 kB a
    BS2 has.

    Regards and success,

    Klaus
    Original Message
    From: <dntgvasht@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, July 03, 2004 9:12 PM
    Subject: [noparse][[/noparse]basicstamps] Interface USB memstick to bs2?


    > I have a rather large program to make, and just putting in the dialogs

    > has completely filled the eeprom mem on the stamp. I want to
    > interface the stamp with an eeprom usb memory stick, to hold program
    > dialog data which will free up onboard eeprom for the actual program.

    > Does anyone have any information that will help me interface with a
    > usb memstick? interfacing, protocols, timing, anything will help.
    >
    > why usb? well it's relatively available, cheap, and uses only 2 I/O
    > pins.
    >
    > I have heard that interfacing with USB is a nightmare though, so if
    > anyone has an alternate way of storing the data, please educate me.
    >
    >
    >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject
    > and
    Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2004-07-03 22:32
    Thanks for you suggestions, I was already aware of the added mem capacity of the higher-end stamps.

    I understand that program code can only be in the stamp, but having a pointer to an external memory address is much more space saving than putting long dialogs into the stamp memory.

    For example, the stamp communicates with an external device, and the device returns error code &H03. The stamp then searches the external memory for the verbose string referenced by &H03, and that string is relayed to an LCD panel. I have many hundreds of such strings and interface dialogs that must be used. Also, using a USB memstick would enable on-the-fly configuration changes for different devices I connect to.

    I have begun looking at possibly using playstation memory cards as an alternative to USB memsticks. Seems they might be easier to interface.






    --- In basicstamps@yahoogroups.com, "K de Jong" <klaus0@x> wrote:
    > Hi,
    >
    > You could use the BS2p or the BS2pe which have 8 or 16 banks of EEPROM
    > memory respectivly. That is 16kBytes or 32 kBytes instead of the 2 kB a BS2
    > has.
    >
    > Regards and success,
    >
    > Klaus
    >
    Original Message
    > From: <dntgvasht@y...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Saturday, July 03, 2004 9:12 PM
    > Subject: [noparse][[/noparse]basicstamps] Interface USB memstick to bs2?
    >
    >
    > > I have a rather large program to make, and just putting in the
    > > dialogs has completely filled the eeprom mem on the stamp. I want to
    > > interface the stamp with an eeprom usb memory stick, to hold program
    > > dialog data which will free up onboard eeprom for the actual
    > > program. Does anyone have any information that will help me
    > > interface with a usb memstick? interfacing, protocols, timing,
    > > anything will help.
    > >
    > > why usb? well it's relatively available, cheap, and uses only 2 I/O
    > > pins.
    > >
    > > I have heard that interfacing with USB is a nightmare though, so if
    > > anyone has an alternate way of storing the data, please educate me.
    > >
    > >
    > >
    > >
    > >
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > > from the same email address that you subscribed. Text in the Subject and
    > Body of the message will be ignored.
    > >
    > > Yahoo! Groups Links
    > >
    > >
    > >
    > >
    > >
    > >
  • ArchiverArchiver Posts: 46,084
    edited 2004-07-03 22:34
    There are lots of large I2C memories that are easy to interface, and the
    BS2p and BS2pe have I2C instructions built in. I would look there and
    forget about the USB thing.

    Jon Williams
    Parallax


    Original Message
    From: dntgvasht@y... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=HpOA4lMPt0HDzqFkO2Bry0UqkHJi5ctk7wDD35K0Qj7edOS76jQL6J4w0uR0tt-X3dKzOxY_S0LLw-y4l4M]dntgvasht@y...[/url
    Sent: Saturday, July 03, 2004 2:13 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Interface USB memstick to bs2?


    I have a rather large program to make, and just putting in the
    dialogs has completely filled the eeprom mem on the stamp. I want to
    interface the stamp with an eeprom usb memory stick, to hold program
    dialog data which will free up onboard eeprom for the actual
    program. Does anyone have any information that will help me
    interface with a usb memstick? interfacing, protocols, timing,
    anything will help.

    why usb? well it's relatively available, cheap, and uses only 2 I/O
    pins.

    I have heard that interfacing with USB is a nightmare though, so if
    anyone has an alternate way of storing the data, please educate me.
  • ArchiverArchiver Posts: 46,084
    edited 2004-07-06 20:01
    Sure, use an external SPI interfaced EEPROM chip.
    MAXIM 28L64 is a number that sounds correct...

    --- In basicstamps@yahoogroups.com, dntgvasht@y... wrote:
    > I have a rather large program to make, and just putting in the
    > dialogs has completely filled the eeprom mem on the stamp. I want
    to
    > interface the stamp with an eeprom usb memory stick, to hold
    program
    > dialog data which will free up onboard eeprom for the actual
    > program. Does anyone have any information that will help me
    > interface with a usb memstick? interfacing, protocols, timing,
    > anything will help.
    >
    > why usb? well it's relatively available, cheap, and uses only 2
    I/O
    > pins.
    >
    > I have heard that interfacing with USB is a nightmare though, so if
    > anyone has an alternate way of storing the data, please educate me.
Sign In or Register to comment.