CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

delay_ms problems

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
seegoon



Joined: 19 Jan 2005
Posts: 8

View user's profile Send private message

delay_ms problems
PostPosted: Wed Jan 19, 2005 2:51 am     Reply with quote

Hi to all.
I am having a problem using the delay_ms function. I am using pcm ver 3.048.
If I have the code delay_ms(10000) , everyting works fine and the delay is about 10s

If I declare a variable : unsigned long int qwerty ,
then have: qwerty = 10000 ;
delay_ms(qwerty);
the delay is only a fraction of a second. Why is this.
I noticed a post saying a later version has a problem with delay_ms function , but this is a much older version.
Any help appreciated.
Cheers
Rob
Gerrit



Joined: 15 Sep 2003
Posts: 58

View user's profile Send private message

PostPosted: Wed Jan 19, 2005 2:56 am     Reply with quote

Hi Seegoon,

Look at the manual, 8 bits variable or 16 bit constant.


You have to do a Seegoon_delay_ms(int16 delay)
and make some loop for long delays.



Gerrit
seegoon



Joined: 19 Jan 2005
Posts: 8

View user's profile Send private message

PostPosted: Wed Jan 19, 2005 3:18 am     Reply with quote

Thanks. RTFM duh!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group