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
Posted: Thu Sep 23, 2004 5:58 am
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.
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