Shop OBEX P1 Docs P2 Docs Learn Events
Switching from BS2 to the Javelin Stamp, how easy/hard? — Parallax Forums

Switching from BS2 to the Javelin Stamp, how easy/hard?

faisalfaisal Posts: 14
edited 2008-01-09 15:20 in BASIC Stamp
Hi all,

Over the past few months I have been Using the BS2 and have found it quite handy, but RAM seems to be an issue.·

The javellin Stamp seems to offer more RAM, but I have found the PULSOUT, PULSIN, SHIFTIN and SHIFTOUT to be very handy commands and was wondering how easy or hard it would be to replicate those commands using the javellin Stamp?

Any help will be much appreciated.

Cheers

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-01-09 08:56
    These commands are all available on the javelin (in the CPU class). Regarding pulsIn and pulsOut, the
    javelin uses a 8.68 usec timebase, whereas the basic stamps have a slightly different timebase,
    from 0.4 usec (bs2sx) to 2 usec (bs2) but unless you need that resolution, there will
    be no problem. Furthermore, the javelin uses background tasks to control servos via PWM,
    you can send/receive up to 6 serial channels simultaneously, do 8bit ADC, and there is an
    unlimited number (as memory serves) of timers that you can use.
    You will find ready to use classes for many Parallax products (and non-Parallax products)
    and many general purpose classes.
    Take a look here and browse the files section.
    http://tech.groups.yahoo.com/group/JavelinCode/files/

    regards peter
  • allanlane5allanlane5 Posts: 3,815
    edited 2008-01-09 15:20
    The initial jump, of going from PBasic's "line oriented code" (GOSUB calls, no local variables) to a true procedural/object oriented language, could be a little steep. However, once you've accomplished your first "hello world" program (and there's examples for this) it's actually quite refreshing to be using a platform with 32 KBytes of RAM.

    And "Java" on your resume looks good, too.
Sign In or Register to comment.