BasicMicro - Forums

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

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ARC32, HSERVO and C
PostPosted: Thu Jan 27, 2011 2:40 pm 
Offline
New User

Joined: Thu Jan 27, 2011 1:37 pm
Posts: 4
just ordered an ARC32 and while I'm awaiting its arrival I thought I'd start familiarizing myself with the IDE.
So my question is, is there any way to access the HSERVO, HSERIN etc routines within a c project?
or Alternatively
can I access any code I have in C, from a .bas.

Maybe I'm missing something, but I can't see any examples that drive the servo pins for an ARC32 in C.
(made harder because I can't search the forum for "C").


Top
 Profile  
 
 Post subject: Re: ARC32, HSERVO and C
PostPosted: Thu Jan 27, 2011 5:10 pm 
Offline
Master

Joined: Tue Nov 21, 2006 9:34 am
Posts: 527
Hi,

There is another similar thread that just started. See my answer in: wish-list-f500/c-library-for-arc32-t9540.html

More specific to your questions:

When you code in C, you don't have access to any of the functionality provided by basic. You have simply the raw hardware and the bootloader... When you download a basic program you are downloading everything including all of the standard functionality... When you code in basic they have not built any capabilities to include C functions as part of the code, however you can include code/functions that written in assembly language.

Awhile ago I played with generating some libraries that provided some of this functionality like hardware serial and HSERVO which I believe I got working on Arc32, the Bap28/Bap40 versions still needed more work...

Kurt


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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