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

Timer Interrupts for PIC18...

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



Joined: 09 Feb 2005
Posts: 48

View user's profile Send private message

Timer Interrupts for PIC18...
PostPosted: Mon Mar 26, 2007 12:00 pm     Reply with quote

if I used the timer0 and timer1 interrupt, what is the result for the following condition. (for pic 18 series) .

Case 1: Both timer interrupt occurs at the same time.

Case 2: Timer0 interruptted , Then MCU execute the interrupt routine. At that point (when MCU execute the interrupt routine) Timer1 is interrupted.

Case 3: Timer0 interruptted. First code line in Timer0 interrupt routine is the "disable_interrupts(Timer1)" The last line in the Timer0 interrupt routine is the "enable_interrupts(Timer1)".

Timer0 interrupt routine()
{
disable_interrupts(Timer1);
....;
....;
x;
...;
...;
enable_interrupts(Timer1);
}

if the timer1 overflow occurs at x. the interrupt occurs or not after "enable_interrupts(Timer1)" code line for pasted overflow?
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