Shop OBEX P1 Docs P2 Docs Learn Events
entering data into an external eeprom — Parallax Forums

entering data into an external eeprom

ArchiverArchiver Posts: 46,084
edited 2004-07-10 16:11 in General Discussion
Jon:

You're being awfully helpful with this and I hate to keep prodding
you for more information...

But.

Your idea is intriguing and while I can see how to peek and poke
bytes with Liberty Basic -- I don't understand how to use the Basic
Stamp editor to peek and poke into my PC memory...

Cheers

> MacQ


In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> Nothing is "effortless" -- but, IMHO, this is not a difficult task
all.
> Since you're skilled with Liberty BASIC I would suggest that you
write
> an application that reads the file for you, then transmits the byte
and
> its address to the BASIC Stamp. The BASIC Stamp would then write
the
> byte for you (at the designated address) and let you know when it's
> ready for another byte (you may want to verify the write to
external EE
> -- like the demo program does).
>
> In the end you'll have a general-purpose app that will let you
transfer
> the contents of a file into an EEPROM using the BASIC Stamp as an
> intermediary.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: dmacq1 [noparse][[/noparse]mailto:dmacq@i...]
> Sent: Friday, July 09, 2004 2:06 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] entering data into an external eeprom
(resend)
>
>
>
>
> Thanks to the kind efforts of Jon Williams and Bruce Bates
> I'm now communicating with and storing data on my external 256k
EEprom
>
> But not happily.
>
> I have a huge amount of carefully calculated data to load into that
256k
> chip (thanks to a math program and Liberty Basic ) -- and it looks
as if
> my original plan to load it with DATA statements isn't going to
work.
> (Well it might -- but it will take forever, since the programmer
doesn't
> seem to want to take too many DATA statements at a time.)
>
> Jon Williams' Nuts and Volts articles on data logging seem to
suggest
> this is going to require extra hardware...
>
> Have I overlooked something obvious, or is there really no way to
read
> from a file of numbers on my PC and load it effortlessly into the
> external EEprom?
>
> Cheers MacQ

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-07-09 21:21
    Jon:

    You're being awfully helpful with this and I hate to keep prodding
    you for more information...

    But.

    Your idea is intriguing and while I can see how to peek and poke
    bytes with Liberty Basic -- I don't understand how to use the Basic
    Stamp editor to peek and poke into my PC memory...

    Cheers

    > MacQ


    In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > Nothing is "effortless" -- but, IMHO, this is not a difficult task
    all.
    > Since you're skilled with Liberty BASIC I would suggest that you
    write
    > an application that reads the file for you, then transmits the byte
    and
    > its address to the BASIC Stamp. The BASIC Stamp would then write
    the
    > byte for you (at the designated address) and let you know when it's
    > ready for another byte (you may want to verify the write to
    external EE
    > -- like the demo program does).
    >
    > In the end you'll have a general-purpose app that will let you
    transfer
    > the contents of a file into an EEPROM using the BASIC Stamp as an
    > intermediary.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: dmacq1 [noparse][[/noparse]mailto:dmacq@i...]
    > Sent: Friday, July 09, 2004 2:06 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] entering data into an external eeprom
    (resend)
    >
    >
    >
    >
    > Thanks to the kind efforts of Jon Williams and Bruce Bates
    > I'm now communicating with and storing data on my external 256k
    EEprom
    >
    > But not happily.
    >
    > I have a huge amount of carefully calculated data to load into that
    256k
    > chip (thanks to a math program and Liberty Basic ) -- and it looks
    as if
    > my original plan to load it with DATA statements isn't going to
    work.
    > (Well it might -- but it will take forever, since the programmer
    doesn't
    > seem to want to take too many DATA statements at a time.)
    >
    > Jon Williams' Nuts and Volts articles on data logging seem to
    suggest
    > this is going to require extra hardware...
    >
    > Have I overlooked something obvious, or is there really no way to
    read
    > from a file of numbers on my PC and load it effortlessly into the
    > external EEprom?
    >
    > Cheers MacQ
  • ArchiverArchiver Posts: 46,084
    edited 2004-07-09 21:55
    Let me see if I can clarify.

    Your LB program will do this:

    1) Read the file into memory
    2) Loop through file data
    -- send command to write, address, and data to BASIC Stamp

    On the BASIC Stamp side, things would look like this:

    SERIN Spin, Baud, [noparse][[/noparse]cmd, addrLo, addrHi, dByte]

    IF (cmd = $C0) THEN
    GOSUB Write_Byte_To_EE
    ENDIF

    IF (cmd = $C1) THEN
    GOSUB Read_Byte_From_EE
    SEROUT Spin, Baud, [noparse][[/noparse]cmd, addrLo, addrHi, dByte]
    ENDIF


    Hopefully this makes sense now -- the PC program is commanding the BASIC
    Stamp. $C0 is the command to write a byte, $C1 is the command to read a
    byte back. That way you could, for example, verify the contents of an
    EEPROM with a file.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office



    Original Message
    From: dmacq1 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=uVnNvqKJ8-WmkalsIn_F39CWhbtla9gX8oOVZZQUe4FmY1gKy8F7E0GBah39FBp4b3YKsbZ7xo037zE]dmacq@i...[/url
    Sent: Friday, July 09, 2004 3:22 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: entering data into an external eeprom


    Jon:

    You're being awfully helpful with this and I hate to keep prodding
    you for more information...

    But.

    Your idea is intriguing and while I can see how to peek and poke
    bytes with Liberty Basic -- I don't understand how to use the Basic
    Stamp editor to peek and poke into my PC memory...

    Cheers

    > MacQ


    In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > Nothing is "effortless" -- but, IMHO, this is not a difficult task
    all.
    > Since you're skilled with Liberty BASIC I would suggest that you
    write
    > an application that reads the file for you, then transmits the byte
    and
    > its address to the BASIC Stamp. The BASIC Stamp would then write
    the
    > byte for you (at the designated address) and let you know when it's
    > ready for another byte (you may want to verify the write to
    external EE
    > -- like the demo program does).
    >
    > In the end you'll have a general-purpose app that will let you
    transfer
    > the contents of a file into an EEPROM using the BASIC Stamp as an
    > intermediary.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: dmacq1 [noparse][[/noparse]mailto:dmacq@i...]
    > Sent: Friday, July 09, 2004 2:06 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] entering data into an external eeprom
    (resend)
    >
    >
    >
    >
    > Thanks to the kind efforts of Jon Williams and Bruce Bates I'm now
    > communicating with and storing data on my external 256k
    EEprom
    >
    > But not happily.
    >
    > I have a huge amount of carefully calculated data to load into that
    256k
    > chip (thanks to a math program and Liberty Basic ) -- and it looks
    as if
    > my original plan to load it with DATA statements isn't going to
    work.
    > (Well it might -- but it will take forever, since the programmer
    doesn't
    > seem to want to take too many DATA statements at a time.)
    >
    > Jon Williams' Nuts and Volts articles on data logging seem to
    suggest
    > this is going to require extra hardware...
    >
    > Have I overlooked something obvious, or is there really no way to
    read
    > from a file of numbers on my PC and load it effortlessly into the
    > external EEprom?
    >
    > Cheers MacQ



    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-10 16:11
    Once your Stamp has recieved and written
    the data to EEPROM, it SHOULD send back some
    kind of 'ACK' byte to LB.

    LB should wait for the 'ACK' byte, wait a
    little longer once it gets it, then send the
    next message to the Stamp. This will let the
    Stamp start up its SERIN before LB sends the
    data.

    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > Let me see if I can clarify.
    >
    > Your LB program will do this:
    >
    > 1) Read the file into memory
    > 2) Loop through file data
    > -- send command to write, address, and data to BASIC Stamp
    >
    > On the BASIC Stamp side, things would look like this:
    >
    > SERIN Spin, Baud, [noparse][[/noparse]cmd, addrLo, addrHi, dByte]
    >
    > IF (cmd = $C0) THEN
    > GOSUB Write_Byte_To_EE
    > ENDIF
    >
    > IF (cmd = $C1) THEN
    > GOSUB Read_Byte_From_EE
    > SEROUT Spin, Baud, [noparse][[/noparse]cmd, addrLo, addrHi, dByte]
    > ENDIF
    >
    >
    > Hopefully this makes sense now -- the PC program is commanding the
    BASIC
    > Stamp. $C0 is the command to write a byte, $C1 is the command to
    read a
    > byte back. That way you could, for example, verify the contents of
    an
    > EEPROM with a file.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    >
    Original Message
    > From: dmacq1 [noparse][[/noparse]mailto:dmacq@i...]
    > Sent: Friday, July 09, 2004 3:22 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: entering data into an external eeprom
    >
    >
    > Jon:
    >
    > You're being awfully helpful with this and I hate to keep prodding
    > you for more information...
    >
    > But.
    >
    > Your idea is intriguing and while I can see how to peek and poke
    > bytes with Liberty Basic -- I don't understand how to use the
    Basic
    > Stamp editor to peek and poke into my PC memory...
    >
    > Cheers
    >
    > > MacQ
    >
    >
    > In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > wrote:
    > > Nothing is "effortless" -- but, IMHO, this is not a difficult task
    > all.
    > > Since you're skilled with Liberty BASIC I would suggest that you
    > write
    > > an application that reads the file for you, then transmits the
    byte
    > and
    > > its address to the BASIC Stamp. The BASIC Stamp would then write
    > the
    > > byte for you (at the designated address) and let you know when
    it's
    > > ready for another byte (you may want to verify the write to
    > external EE
    > > -- like the demo program does).
    > >
    > > In the end you'll have a general-purpose app that will let you
    > transfer
    > > the contents of a file into an EEPROM using the BASIC Stamp as an
    > > intermediary.
    > >
    > > -- Jon Williams
    > > -- Applications Engineer, Parallax
    > > -- Dallas Office
    > >
    > >
    > >
    Original Message
    > > From: dmacq1 [noparse][[/noparse]mailto:dmacq@i...]
    > > Sent: Friday, July 09, 2004 2:06 PM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] entering data into an external eeprom
    > (resend)
    > >
    > >
    > >
    > >
    > > Thanks to the kind efforts of Jon Williams and Bruce Bates I'm
    now
    > > communicating with and storing data on my external 256k
    > EEprom
    > >
    > > But not happily.
    > >
    > > I have a huge amount of carefully calculated data to load into
    that
    > 256k
    > > chip (thanks to a math program and Liberty Basic ) -- and it looks
    > as if
    > > my original plan to load it with DATA statements isn't going to
    > work.
    > > (Well it might -- but it will take forever, since the programmer
    > doesn't
    > > seem to want to take too many DATA statements at a time.)
    > >
    > > Jon Williams' Nuts and Volts articles on data logging seem to
    > suggest
    > > this is going to require extra hardware...
    > >
    > > Have I overlooked something obvious, or is there really no way to
    > read
    > > from a file of numbers on my PC and load it effortlessly into the
    > > external EEprom?
    > >
    > > Cheers MacQ
    >
    >
    >
    > 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...
Sign In or Register to comment.