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

set_timer() and delay

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







set_timer() and delay
PostPosted: Sun Dec 27, 2009 11:23 pm     Reply with quote

Hi.
Just quick question.
does the function set_timerX(); include the delay for the time it takes to record on the timer? or do I have to put in delay separately?
Rohit de Sa



Joined: 09 Nov 2007
Posts: 282
Location: India

View user's profile Send private message Visit poster's website

PostPosted: Sun Dec 27, 2009 11:47 pm     Reply with quote

BBN wrote:
time it takes to record on the timer
What exactly do you mean by this? The timer is a variable in RAM. RAM is not like EEPROM; writes to RAM are almost instantaneous, requiring only a few nanoseconds.

There is one thing however - once you write to timer0, it will not increment for two clock cycles. So you'd need to put an 'adjusted' value into timer0 when you use 'set_timer0();'.

Rohit
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