BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 1:10 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: bs2 compatability
PostPosted: Mon Jun 02, 2003 10:00 am 
Hi ,

I just got introduced to basic atom microcontroller. I have this code for bs2x for a simple gait for a robot. When i tried to run this using basicAtomPro24 -m chip it says "unknown command" for some of the syntax like DIRS, OUTS and even the equality sign "=". Can someone help me.



Top
  
 
 Post subject: Re: bs2 compatability
PostPosted: Mon Jun 02, 2003 10:00 am 
I would suggest posting the lines of the program that are giving you problems.

Craig



Top
  
 
 Post subject: Re: bs2 compatability
PostPosted: Mon Jun 02, 2003 10:00 am 
this is the code i am trying to run , it works fine on bs2

i var byte
j var byte
a var word(4) 'activation
r var byte(4) 'repitions

a(0) = %0000011010010110 ^ %0000110010011100
a(1) = %0000010000010100 ^ %0000110010011100
a(2) = %0000100101101001 ^ %0000110010011100
a(3) = %0000000101000001 ^ %0000110010011100

r(0) = 15
r(1) = 14
r(2) = 15
r(3) = 14

dirs = $FFFF
outs = 0

for i = 0 to 50
outs = $FFFF
pulsout 12, 100
outs = %0000110010011100
pulsout 12, 2000
outs = 0
pause 20
next


loop:

for i = 0 to 3
for j = 1 to r(i)
outs = $FFFF
pulsout 12, 100
outs = a(i)
pulsout 12, 2000
outs = 0
pause 17
next
next

goto loop
end





Top
  
 
 Post subject: Re: bs2 compatability
PostPosted: Tue Jun 03, 2003 10:00 am 
Your code should work with editor versions 7.1.0.3 and up. DIRS, OUTS, etc. were all fixed in that release. Make sure to uninstall your old software first.

If this doesn't solve your problem, post again and we'll all think harder about the problem.

bgunn



Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO