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

interrupt priority

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



Joined: 08 Sep 2003
Posts: 6

View user's profile Send private message

interrupt priority
PostPosted: Thu Sep 23, 2004 1:35 am     Reply with quote

I am using interrupts int_rda and int_ccp2. I am using int_ccp2 to measure the frequency of a signal. The interupt int_rda however causes my software to miss pulses resulting in an inaccurate reading. How can I ensure that no pulses are lost on int_ccp2 and all data sent to int_rda is received. Is there a way to prioritize the int_ccp2 interrupt . I dont want to loose data using int_rda so is the a way of buffering incoming data while my program waits for completion of int_ccp2.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Thu Sep 23, 2004 5:58 am     Reply with quote

You can set the priority of the interrupts (which one the compiler looks at first). Keep you ints short. Set flags and handle tasks in the main loop. Run the PIC as fast as she'll go. Post you int handlers and maybe someone can comment on improving their speed.
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