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

what the state of TMR0IF ?

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



Joined: 28 Mar 2007
Posts: 20

View user's profile Send private message

what the state of TMR0IF ?
PostPosted: Wed Jul 04, 2007 9:00 am     Reply with quote

hello
if it's possible Wink , i want to know if these commands clear or not TMR0IF: Rolling Eyes
-setup_timer_0(mode)
-set_timer0(value)
-#INT_TIMER0
-enable_interrupts(INT_TIMER0);
-disable_interrupts(INT_TIMER0);
thanks
Ttelmah
Guest







PostPosted: Wed Jul 04, 2007 12:52 pm     Reply with quote

The only one that will, is the interrupt handler for #int_timer0, unless the 'NOCLEAR' option is used. None of the other instructions will have any effect on the interrupt flag.

Best Wishes
JULIEN LAFFITTE



Joined: 28 Mar 2007
Posts: 20

View user's profile Send private message

PostPosted: Wed Jul 04, 2007 9:58 pm     Reply with quote

tanks
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: what the state of TMR0IF ?
PostPosted: Thu Jul 05, 2007 10:23 pm     Reply with quote

JULIEN LAFFITTE wrote:
hello
if it's possible Wink , i want to know if these commands clear or not TMR0IF: Rolling Eyes
-setup_timer_0(mode)
-set_timer0(value)
-#INT_TIMER0
-enable_interrupts(INT_TIMER0);
-disable_interrupts(INT_TIMER0);
thanks

If you want to load a value to the timer then clear the interrupt then enable the interrupt, you would use:
Code:
set_timer0(value);
clear_interrupt(INT_TIMER0);
enable_interrupts(INT_TIMER0);
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