BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 12:52 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: ARC-32 issues?
PostPosted: Tue Nov 02, 2010 7:00 am 
Offline
New User

Joined: Sun Oct 31, 2010 12:16 am
Posts: 4
After 3 weeks of waiting my ARC-32 board arrived last week. Everything is fine except there are some things to highlight:

- transferring data to the board is quite long, up to 3-4 minutes, which is quite long comparing with other MCU even using serial connection. Is this normal?

- I managed to write some code to connect to PS2 controller, control a 3 servo robotic arm, etc. However, trying to read an analog value is a no go. I tried few different ways like using ADIN:

Code:
Pot var word
Main
   adin P8, pot
   serout s_out, i9600, [0, “Analog Value = “, dec pot, 13]
   Pause 50
Goto Main


or

Code:
irDist var byte

Main
   irDist = HSERVOSTATE P8
   serout s_out, i19200, [0, "Analog Value = ", dec irDist, 13]
   Pause 50
Goto Main


But always the result is 0. I am using a Sharp IR sensor (2Y0A21) and I am able to see on the scope the VD changing direct proportional with the distance, but I can not read it with ARC32. Any idea what I am doing wrong?

- When I am trying to run the SSC-32 emulator code, it get stuck at:

Code:
...
index var word
eekey var word
readdm REGKEY,[eekey.byte1,eekey.byte0]
if(eekey<>0xA55A)then
   gosub ResetRegisters
endif
...


Any suggestion is really appreciated.
Btw, this is my first experience with Atom MCU and BasicMicro environment.


Top
 Profile  
 
 Post subject: Re: ARC-32 issues?
PostPosted: Tue Nov 02, 2010 7:10 am 
Offline
Master

Joined: Tue Nov 21, 2006 9:34 am
Posts: 527
There is another thread (syntax-manual-f501/port-variable-names-not-recognized-t9442.html) that discusses this issue as well. Which version of the IDE are you running?

You might try adding a dummy HSERVO command to make sure the sub-system is started...

SSC-32 emulation. Yep different thread: post43098.html?hilit=SsC32#p43098
Not sure if he posted an update for this yet or not...

Kurt

P.S. - Yep the built-in FTDI USB programmer is slow!


Top
 Profile  
 
 Post subject: Re: ARC-32 issues?
PostPosted: Tue Nov 02, 2010 8:40 am 
Offline
New User

Joined: Sun Oct 31, 2010 12:16 am
Posts: 4
Thank you Kurt, the dummy HSERVO did the trick!
I will post my question on the SSC emulator under that thread then.
Btw, by any chance you know what speed is the bootloader using? I'm thinking to use xBee to do wireless upload of the code on ARC-32 ;-)


Top
 Profile  
 
 Post subject: Re: ARC-32 issues?
PostPosted: Mon Dec 20, 2010 11:50 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
The bootloader runs at 115200bps

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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