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 and timer0

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



Joined: 02 Dec 2003
Posts: 15

View user's profile Send private message

delay_ms and timer0
PostPosted: Sat Jan 31, 2004 3:25 pm     Reply with quote

I use timer0 or RTCC as my main timer interrupt, I also use delay_ms() function.
Does delay_ms() also use the same timer0 to perform the delay?

What timer does the delay_ms()?
Do I have to care about any conflict or side effect?
Ttelmah
Guest







Re: delay_ms and timer0
PostPosted: Sat Jan 31, 2004 3:27 pm     Reply with quote

wynnet wrote:
I use timer0 or RTCC as my main timer interrupt, I also use delay_ms() function.
Does delay_ms() also use the same timer0 to perform the delay?

What timer does the delay_ms()?
Do I have to care about any conflict or side effect?

The CCS 'delay' functions, are purely software based. As such, you can use any timers you want without problems, but (of course), have to remember that these software delays will not be accurate, if the system interrupts during the loop.

Best Wishes
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Mon Feb 02, 2004 10:26 am     Reply with quote

Another way to look at delay_x()
It means waste enough instruction cycles to pass this much time.
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