Shop OBEX P1 Docs P2 Docs Learn Events
BS2 clock speed and instruction execution time — Parallax Forums

BS2 clock speed and instruction execution time

JerrydJerryd Posts: 4
edited 2009-01-23 22:04 in BASIC Stamp
HELP!

I'm trying to understand the operation of the Basic Stamp BS2 module.

Sorry if some of this is very basic but I don't want to start my first
robot project until I think I know how the hardware/software works.

I see in the data sheet that the Program Execution Speed is 4000
instructions/sec. I guess it's not rated in MIPS because Pbasic is an
interpreted not compiled language. Is this 4000/sec a worse case number
since all the instructions have a different execution time? Is there a chart
somewhere that lists the execution time all 42 Pbasic commands?

Since the processor speed is 20 MHZ the basic clock speed must be 50 ns.

4000 instructions/sec is 1/4000 = 500 ns. so the longest instruction
must take 10 clock cycles.

Is any this stuff correct or am I way off?

Thanks
Jerryd

Comments

  • dandreaedandreae Posts: 1,375
    edited 2009-01-23 22:04
    I believe·Dr. Tracy Allen has information related to the time that it takes to execute
    each command on his website.· Here is a link to website:· www.emesystems.com

    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
Sign In or Register to comment.