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 support@ccsinfo.com

timer interrupt and external interrupt collision

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



Joined: 14 Oct 2008
Posts: 103

View user's profile Send private message

timer interrupt and external interrupt collision
PostPosted: Thu Nov 18, 2010 8:26 pm     Reply with quote

Hi guys
I want to generate 2 software pwm channels using 12F675. I think I have good idea about how to make software pwm using a timer interrupt.
And also I'm planning to use external interrupt channel on 12F675.

My question is will these two interrupt interfere with each other?
I mean while generating PWM, occurrence of a external interrupt will stop executing timer interrupt routine?

Is there any way to use this two interrupts without interfering each other? So I can use external interrupt same time without stopping PWM generation?
thank you.

My compiler version is 4.084
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Nov 18, 2010 8:47 pm     Reply with quote

If you get an External interrupt, any other interrupts that occur after
that moment will be blocked until the External interrupt has finished
being handled by the compiler.

Read this thread for more information on the amount of time required
to service an interrupt:
http://www.ccsinfo.com/forum/viewtopic.php?t=43399

This thread has more information on the CCS interrupt handler code:
http://www.ccsinfo.com/forum/viewtopic.php?t=29173
aruna1



Joined: 14 Oct 2008
Posts: 103

View user's profile Send private message

PostPosted: Thu Nov 18, 2010 8:57 pm     Reply with quote

PCM programmer wrote:
If you get an External interrupt, any other interrupts that occur after
that moment will be blocked until the External interrupt has finished
being handled by the compiler.

Read this thread for more information on the amount of time required
to service an interrupt:
http://www.ccsinfo.com/forum/viewtopic.php?t=43399

This thread has more information on the CCS interrupt handler code:
http://www.ccsinfo.com/forum/viewtopic.php?t=29173

thank you pcm programmer
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