Shop OBEX P1 Docs P2 Docs Learn Events
BS1 Instruction Times — Parallax Forums

BS1 Instruction Times

ArchiverArchiver Posts: 46,084
edited 2000-08-11 04:15 in General Discussion
Here's a list of BS1 instruction execution times. In each case the
indicated times reflect the total time, in microseconds, spent in
the instruction(s).

If a specific BS1 instruction sequence timing is desired, better ask
quick before I tear down this setup.

This info is fair game for inclusion in any other collection of
Stamp info as desired.

Steve

***
HIGH 3
***
250 usec

***
INPUT 3
***
246 usec

***
TOGGLE 3
***
248 usec

***
REVERSE 3
***
246 usec

***
PAUSE 1
***
1221 usec

***
PAUSE 2
***
2228 usec

***
SLEEP 1
***
2,550,645 usec

***
PULSOUT 3,1
***
343 usec

***
PULSOUT 3,2
***
374 usec

***
PULSOUT 3,3
***
384 usec

***
PULSOUT 3,10
***
454 usec

***
GOTO b
.
.
b:
***
419 usec

***
GOSUB b
***
1338 usec
.
.
b:
RETURN

***
FOR i = 1 TO 1
NEXT
***
988 usec

***
FOR i = 1 TO 2
NEXT
***
1903

***
FOR i = 1 TO 10
NEXT
***
9066

***
LET i = 1
***
427

***
LET i = x
***
456 usec

***
IF x = y THEN b (when x != y)
***
509

***
IF x = y THEN b (when x = b)
.
.
b:
***
660 usec

***
READ 0,i
***
853 usec

***
WRITE 0,i
***
4731 usec

***
NAP 0
***
39,566 usec

***
NAP 1
***
59,025 usec

***
NAP 7
***
2,510,551 usec

***
BRANCH x,(b,c,d)
[noparse][[/noparse]***]
for x = 3 (x out of range), 631 usec
b:
for x = 0, 552 usec
.
c:
[noparse][[/noparse]***]
for x = 1, 687 usec
.
d:
[noparse][[/noparse]***]
for x = 2, 789 usec

***
LOOKUP x,(0,1,2),y
***
for x = 0, 659 usec
for x = 1, 659 usec
for x = 2, 659 usec
for x = 3 (x out of range), 633 usec

***
LOOKDOWN x,(0,1,2),y
***
for x = 0, 703 usec
for x = 1, 703 usec
for x = 2, 703 usec
for x = 3 (x out of range), 663 usec


(end of list)

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-08-11 04:15
    Hi Steve,

    If you are going to put this on your site, I'll link to it from the FAQ.
    Otherwise, I'll post in there if you would like.

    Regards,

    Al Williams
    AWC
    *Basic Stamp FAQ: http://www.al-williams.com/wd5gnr/stampfaq.htm


    >
    Original Message
    > From: S Parkis [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=1AvFhuL5RIunx38czThuq7iXy1UGuyUcJqDV-uHlsDaRqrPcRc8uO2BND2KJCVpySwm28JkhUOs8B1ZJqyng2Q]parkiss@e...[/url
    > Sent: Thursday, August 10, 2000 6:43 AM
    > To: basicstamps@egroups.com; whawaii@m...
    > Subject: [noparse][[/noparse]basicstamps] BS1 Instruction Times
    >
    >
    > Here's a list of BS1 instruction execution times. In each case the
    > indicated times reflect the total time, in microseconds, spent in
    > the instruction(s).
    >
    > If a specific BS1 instruction sequence timing is desired, better ask
    > quick before I tear down this setup.
    >
    > This info is fair game for inclusion in any other collection of
    > Stamp info as desired.
    >
    > Steve
    >
    > ***
    > HIGH 3
    > ***
    > 250 usec
    >
    > ***
    > INPUT 3
    > ***
    > 246 usec
    >
    > ***
    > TOGGLE 3
    > ***
    > 248 usec
    >
    > ***
    > REVERSE 3
    > ***
    > 246 usec
    >
    > ***
    > PAUSE 1
    > ***
    > 1221 usec
    >
    > ***
    > PAUSE 2
    > ***
    > 2228 usec
    >
    > ***
    > SLEEP 1
    > ***
    > 2,550,645 usec
    >
    > ***
    > PULSOUT 3,1
    > ***
    > 343 usec
    >
    > ***
    > PULSOUT 3,2
    > ***
    > 374 usec
    >
    > ***
    > PULSOUT 3,3
    > ***
    > 384 usec
    >
    > ***
    > PULSOUT 3,10
    > ***
    > 454 usec
    >
    > ***
    > GOTO b
    > .
    > .
    > b:
    > ***
    > 419 usec
    >
    > ***
    > GOSUB b
    > ***
    > 1338 usec
    > .
    > .
    > b:
    > RETURN
    >
    > ***
    > FOR i = 1 TO 1
    > NEXT
    > ***
    > 988 usec
    >
    > ***
    > FOR i = 1 TO 2
    > NEXT
    > ***
    > 1903
    >
    > ***
    > FOR i = 1 TO 10
    > NEXT
    > ***
    > 9066
    >
    > ***
    > LET i = 1
    > ***
    > 427
    >
    > ***
    > LET i = x
    > ***
    > 456 usec
    >
    > ***
    > IF x = y THEN b (when x != y)
    > ***
    > 509
    >
    > ***
    > IF x = y THEN b (when x = b)
    > .
    > .
    > b:
    > ***
    > 660 usec
    >
    > ***
    > READ 0,i
    > ***
    > 853 usec
    >
    > ***
    > WRITE 0,i
    > ***
    > 4731 usec
    >
    > ***
    > NAP 0
    > ***
    > 39,566 usec
    >
    > ***
    > NAP 1
    > ***
    > 59,025 usec
    >
    > ***
    > NAP 7
    > ***
    > 2,510,551 usec
    >
    > ***
    > BRANCH x,(b,c,d)
    > [noparse][[/noparse]***]
    > for x = 3 (x out of range), 631 usec
    > b:
    > for x = 0, 552 usec
    > .
    > c:
    > [noparse][[/noparse]***]
    > for x = 1, 687 usec
    > .
    > d:
    > [noparse][[/noparse]***]
    > for x = 2, 789 usec
    >
    > ***
    > LOOKUP x,(0,1,2),y
    > ***
    > for x = 0, 659 usec
    > for x = 1, 659 usec
    > for x = 2, 659 usec
    > for x = 3 (x out of range), 633 usec
    >
    > ***
    > LOOKDOWN x,(0,1,2),y
    > ***
    > for x = 0, 703 usec
    > for x = 1, 703 usec
    > for x = 2, 703 usec
    > for x = 3 (x out of range), 663 usec
    >
    >
    > (end of list)
    >
    >
Sign In or Register to comment.