Shop OBEX P1 Docs P2 Docs Learn Events
SX microcontrollers capacity. — Parallax Forums

SX microcontrollers capacity.

JoeJoe Posts: 184
edited 2007-05-23 01:27 in General Discussion
Hi,

Only to know if I can use more variables and a larger rutines
than a Basic Stamp 2PE using SX-28 or SX-48 microcontrollers.

Of course always in BASIC language ( not assemb.)
( Using the S-Key V3.2)



Thanks, Joe
Ps: I understand that Stamps have more literature at Parallax
but I need more capacity than the BS2Pe and I will lost same time
if I try to undestand a second lenguage like the SPIN for the Propeller .

Comments

  • BeanBean Posts: 8,129
    edited 2007-05-22 17:09
    Joe,
    The BS2pe has 26 bytes for variables + 128 scratchpad bytes and 8 x 2K for programs.
    The SX28 has 19 bytes for variables + 104 for arrays and 1 x 2K for programs.
    The SX48 has 17 bytes for variables + 223 for arrays and 1 x 4K for programs.

    The main thing the SX gets you is incredible speed.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    “The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
  • JoeJoe Posts: 184
    edited 2007-05-22 17:29
    Thanks.

    But could I increase the variables of the SX28 or SX48 ?


    Thanks, Joe
  • BeanBean Posts: 8,129
    edited 2007-05-22 17:57
    In many cases you can use array with a single element instead of a byte variable.

    Do you need more than the array space ?

    How many bytes do you need ?

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    “The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-05-23 01:27
    Bean,

    EE/Flash Program memory = "1 X 2K" (SX28) and "1 X 4K" (SX48)?

    Aren't they 12 bits X 2048 [noparse][[/noparse]or 2K] and X 4096 [noparse][[/noparse]or 4K]; that is, 2048 12-bit Words and 4096 12-bit Words, respectively?

    I've been tripped up sometimes when they go calling memory by "bits" when·it's bytes that most everyone reckons.


    Post Edited (PJ Allen) : 5/23/2007 1:32:08 AM GMT
Sign In or Register to comment.