Shop OBEX P1 Docs P2 Docs Learn Events
I want to play, but have a project — Parallax Forums

I want to play, but have a project

ArchiverArchiver Posts: 46,084
edited 2003-11-02 01:07 in General Discussion
Hey guys,
I subscribed to the user group several months ago, and am
getting the unread messages down to a workable amount. I'm impressed
with the feedback, as sometimes a simpler solution exists.
Remember the guy who could tell everything was fine by the sound of the
relays banging in? Sorry this message is long, but first one.
- flash memory, in a reader, connected to a pc via usb, is transparent
as a 'hard drive', supporting standard disk operating system (dos) files.
1/ can I, in a data logging project with a stamp, write to a 'compact
flash' the data in a dos file format (say ascii txt) so that I can
remove the flash card, stick it in the reader and have the pc recognize
it as a standard file?
2/ Is there such a thing as a cross assembler, basic to c+, c+ to basic?
Again sorry for the length, but been saving this up for months......any
comments will be appreciated
thanks
jim

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-11-01 05:48

    Original Message
    From: "James Myles" <jmyles@r...>


    > 1/ can I, in a data logging project with a stamp, write to a 'compact
    > flash' the data in a dos file format (say ascii txt) so that I can
    > remove the flash card, stick it in the reader and have the pc recognize
    > it as a standard file?

    Yep, I'm sure it's been done or is doable, but it would be quite a project.
    Are you sure you want to tackle this as a beginner project? :O)

    > 2/ Is there such a thing as a cross assembler, basic to c+, c+ to basic?

    Nope, because Pbasic isn't a compiled language. It is "tokenized" and
    interpreted on board the stamp. The only cross-compilers available are for
    porting Pbasic to such chips as the Microchip PIC series, and I think the
    Ubicom SX series. Because Pbasic is so radically different in structure, and
    it doesn't compile to assembler, it would be hard or impossible to actually
    convert it to C code. Same thing for C-Pbasic conversion.

    - Robert
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-01 06:30
    Thanks Robert
    So much for science fiction re cross assemblers
    re tackling as a beginner, the info I've got from this site for data
    logging is great, I presume you speak of the flash stuff....but you
    forget, the greatest knowledge is here!
    jim
    Robert Ussery wrote:

    >
    Original Message
    >From: "James Myles" <jmyles@r...>
    >
    >
    >
    >
    >>1/ can I, in a data logging project with a stamp, write to a 'compact
    >>flash' the data in a dos file format (say ascii txt) so that I can
    >>remove the flash card, stick it in the reader and have the pc recognize
    >>it as a standard file?
    >>
    >>
    >
    >Yep, I'm sure it's been done or is doable, but it would be quite a project.
    >Are you sure you want to tackle this as a beginner project? :O)
    >
    >
    >
    >>2/ Is there such a thing as a cross assembler, basic to c+, c+ to basic?
    >>
    >>
    >
    >Nope, because Pbasic isn't a compiled language. It is "tokenized" and
    >interpreted on board the stamp. The only cross-compilers available are for
    >porting Pbasic to such chips as the Microchip PIC series, and I think the
    >Ubicom SX series. Because Pbasic is so radically different in structure, and
    >it doesn't compile to assembler, it would be hard or impossible to actually
    >convert it to C code. Same thing for C-Pbasic conversion.
    >
    >- Robert
    >
    >
    >
    >
    >
    >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/
    >
    >
    >
    >
    >



    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-02 01:07
    Yes, writing to a Flash card has been done.
    Look for 'Stamp Drive'.

    And no, there is no Basic to C++ translator.
    The problems are many. First, a translator
    must 'know' both the 'source' environment, and
    the 'destination' environment -- in terms of
    available keywords, library calls, etc.

    Then, the translator must translate both the
    language constructs, library constructs, and
    'structure' (module layout) of the 'source' to
    the 'destination'. If the two environments don't
    match very closely, this is very non-trivial.

    The PBasic environment IS very simple, and much
    of the very useful stuff it does is embedded in
    the SERIN/SEROUT, SHIFTIN/SHIFTOUT, and PULSOUT
    commands. It's really much easier just to learn
    PBasic.

    Also, having done a little of this work for a
    Pascal to 'C' converter -- if you have Pascal
    source, converted to 'C', it looks VERY 'Pascaly'.
    And vice-versa. With the Stamp, the environment
    is really too different.

    --- In basicstamps@yahoogroups.com, James Myles <jmyles@r...> wrote:
    > Hey guys,
    > I subscribed to the user group several months ago,
    and am
    > getting the unread messages down to a workable amount. I'm
    impressed
    > with the feedback, as sometimes a simpler solution exists.
    > Remember the guy who could tell everything was fine by the sound of
    the
    > relays banging in? Sorry this message is long, but first one.
    > - flash memory, in a reader, connected to a pc via usb, is
    transparent
    > as a 'hard drive', supporting standard disk operating system (dos)
    files.
    > 1/ can I, in a data logging project with a stamp, write to
    a 'compact
    > flash' the data in a dos file format (say ascii txt) so that I can
    > remove the flash card, stick it in the reader and have the pc
    recognize
    > it as a standard file?
    > 2/ Is there such a thing as a cross assembler, basic to c+, c+ to
    basic?
    > Again sorry for the length, but been saving this up for
    months......any
    > comments will be appreciated
    > thanks
    > jim
Sign In or Register to comment.