BasicMicro - Forums

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

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: HPWM problem
PostPosted: Tue Jan 03, 2012 8:04 pm 
Offline
New User

Joined: Sun Jan 01, 2012 3:34 pm
Posts: 1
Hi,
I am getting an error in some fairly trivial code:
Code:
hpwm P3,2000,500
loop1:
goto loop1


I get
Warnings/Errors/Messages:
Error[113] C:\Program Files\BasicMicro\Basic Micro Studio\system\mbasic14\mbasichard.lib 648 : Symbol not previously defined (DC1B0).
Error[113] C:\Program Files\BasicMicro\Basic Micro Studio\system\mbasic14\mbasichard.lib 653 : Symbol not previously defined (DC1B1).

I'm running Basic Micro Studio 2.0.0.15 on a Nano18.

Any suggestions?

--Phil Martel


Top
 Profile  
 
 Post subject: Re: HPWM problem
PostPosted: Wed Jan 04, 2012 9:10 am 
Offline
Guru

Joined: Wed Nov 30, 2011 7:56 pm
Posts: 52
Location: Ontario Canada
colon after label?

hpwm P3,2000,500
loop1
goto loop1

Remove the colon
Try that?


Top
 Profile  
 
 Post subject: Re: HPWM problem
PostPosted: Wed Jan 04, 2012 9:23 am 
Offline
Master

Joined: Tue Nov 21, 2006 9:34 am
Posts: 527
I believe that this is a known issue: See the thread: post44402.html?hilit=HPWM#p44402

In that thread, you needed to define a couple of defines at the start of the program. I tried adding those and it now compiles for a Nano18...

Code:
DC1B1 con CCP1X
DC1B0 con CCP1Y
hpwm P3,2000,500
loop1:
goto loop1


Top
 Profile  
 
 Post subject: Re: HPWM problem
PostPosted: Wed Jan 04, 2012 11:20 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
This has been fixed but the new release hasn't be made yet. The above from Kurt is the correct workaround until the next release.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: HPWM problem
PostPosted: Thu Jan 05, 2012 2:11 pm 
Offline
Guru

Joined: Wed Nov 30, 2011 7:56 pm
Posts: 52
Location: Ontario Canada
OK, so now I am confused. Is "loop1: and goto loop1" different than say a simple routine where you go to a subroutine to do something, then return? I cannot find reference to "loop1" in the manual? With my VERY limited experience, that routine looks like it just goes in circles for ever. Wrong? I thought maybe other code was left out for simplification but really there would be a lot of other code within "loop1" :? :? :?


Top
 Profile  
 
 Post subject: Re: HPWM problem
PostPosted: Fri Jan 06, 2012 3:34 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
loop1: is a user defined label. goto loop1 tells the program to go to the line with the loop1 label on it.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO