BS2 clock speed and instruction execution time
Jerryd
Posts: 4
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
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
each command on his website.· Here is a link to website:· www.emesystems.com
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Parallax Tech Support·