Shop OBEX P1 Docs P2 Docs Learn Events
serial input buffer — Parallax Forums

serial input buffer

ArchiverArchiver Posts: 46,084
edited 2001-10-30 15:12 in General Discussion
I apologize for my electronic knowledge, I am only a mechanical engineer :
). I have a serial device that sends data about every second. How can I
store this serial data somewhere so that I can do other tasks with my BS2
and periodically check this serial 'buffer'. It seems as though I am not
getting this serial data because my stamp is performing other tasks. I
don't want to tie up my stamp just looking for the data to come across.
Thanks, Dan

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-10-24 15:43
    I designed an "SSIB" for the SX training material on the Parallax Web site
    (http://www.parallaxinc.com/downloads/SXTech/IO%20Control%20with%20the%20SX.
    PDF). This uses an SX chip to do what you describe.

    Unfortunately, we don't commerically produce the SSIB and neither does
    Parallax. If you don't have the means to make one yourself and it looks like
    it would do what you want, contact me off list and I'll see what we can do
    for you.

    Jump to page 89 to read about the SSIB.

    Regards,

    * Easy RS-232 Prototyping
    http://www.al-williams.com/awce/rs1.htm

    >
    Original Message
    > From: daniel.d.dangremond@j... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=0pzQCce_anLzIMpXw46s0CEpKiq0QdBPSvlo-DlqYs7_T9GmJSFPYFyvC3qxogPuiSsYugxWxZv-WtRlzUT8z_0Pi7NJuw]daniel.d.dangremond@j...[/url
    > Sent: Wednesday, October 24, 2001 9:35 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] serial input buffer
    >
    >
    > I apologize for my electronic knowledge, I am only a mechanical engineer :
    > ). I have a serial device that sends data about every second. How can I
    > store this serial data somewhere so that I can do other tasks with my BS2
    > and periodically check this serial 'buffer'. It seems as though I am not
    > getting this serial data because my stamp is performing other tasks. I
    > don't want to tie up my stamp just looking for the data to come across.
    > Thanks, Dan
    >
    >
    > 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.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-10-24 15:43
    Since the current line of Stamps don't buffer serial data, what you need to
    do with them is make the serial input a priority. My suggestion is that you
    look for the serial input and once you've got it, go take care of one of your
    other activities (or as many as you can squeeze into the time between serial
    bursts). You should probably use the Timeout parameter on SERIN in case you
    serial data stops coming.

    -- Jon Williams
    -- Parallax


    In a message dated 10/24/01 9:39:02 AM Central Daylight Time,
    daniel.d.dangremond@j... writes:


    > I apologize for my electronic knowledge, I am only a mechanical engineer :
    > ). I have a serial device that sends data about every second. How can I
    > store this serial data somewhere so that I can do other tasks with my BS2
    > and periodically check this serial 'buffer'. It seems as though I am not
    > getting this serial data because my stamp is performing other tasks. I
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2001-10-24 15:50
    One slightly costly solution, is to use a FIFO. This is a buffer that
    reads and stores all incoming data in a First In First Out ordering. The
    stamp then reads the data out of the buffer at its leisure.

    One premade system is the RAMpack B from :
    http://www.solutions-cubed.com

    In the manual look at application note 55.
    (Note: The stamp controls when the device can write into the fifo. This
    circuit requires that the stamp turns of the writing ability inorder to
    read the data from the fifo. during this time the device cannot write new
    data to the fifo.)

    Joshua

    --On Wednesday, October 24, 2001 10:34 AM -0400 daniel.d.dangremond@j...
    wrote:

    > I apologize for my electronic knowledge, I am only a mechanical engineer :
    > ). I have a serial device that sends data about every second. How can I
    > store this serial data somewhere so that I can do other tasks with my BS2
    > and periodically check this serial 'buffer'. It seems as though I am not
    > getting this serial data because my stamp is performing other tasks. I
    > don't want to tie up my stamp just looking for the data to come across.
    > Thanks, Dan
    >
    >
    > 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.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-10-28 22:09
    I run into this problem all of the time, and don't think that
    Parallax has a plausible story for getting around the issue (any self-
    respecting micro should have this functionality on board). It has me
    ready to move to a different platform.

    Anyway, there's a chip, the RB509, that implements a 32 byte serial
    buffer. Works great. Easy to use. You can find it on:

    http://www.protean-logic.com

    They have an app-note on hooking it up to the BS2.

    Hope this helps.
  • ArchiverArchiver Posts: 46,084
    edited 2001-10-29 17:13
    The BS2p now has a statement, SPSTR L, that can be added to the SERIN command
    so to be able to buffer the input for fast data collection. The setup looks
    like this
    SERIN pin,baud,[noparse][[/noparse]SPSTR L] where L can be between value or variable between 1
    and 128. The data is collected in ram locations 0 to 127 and can be read with
    the GET command. This is very helpful when reading gps input data.
    Chuck


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2001-10-30 02:20
    That one seems to missing from the 2.0 manual. It is in the
    StampW program help.

    >
    > The BS2p now has a statement, SPSTR L, that can be added to the SERIN command
    > so to be able to buffer the input for fast data collection. The setup looks
    > like this SERIN pin,baud,[noparse][[/noparse]SPSTR L] where L can be between value or variable
    > between 1 and 128. The data is collected in ram locations 0 to 127 and can be
    > read with the GET command. This is very helpful when reading gps input data.
    > Chuck
  • ArchiverArchiver Posts: 46,084
    edited 2001-10-30 15:12
    In a message dated 10/29/01 6:23:18 PM Pacific Standard Time,
    miked@t... writes:
    You are right. It is not in the 2.0 manual but is discussed in the new editor
    help files.
    Chuck

    > That one seems to missing from the 2.0 manual. It is in the
    > StampW program help.
    >
    > >
    > > The BS2p now has a statement, SPSTR L, that can be added to the SERIN
    > command
    > > so to be able to buffer the input for fast data collection. The setup
    > looks
    > > like this SERIN pin,baud,[noparse][[/noparse]SPSTR L] where L can be between value or
    > variable
    > > between 1 and 128. The data is collected in ram locations 0 to 127 and
    > can be
    > > read with the GET command. This is very helpful when reading gps input
    > data.
    > > Chuck
    >
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.