From: "Wouter van Ooijen" > If your main loop is dedicated to using the data, and it can't keep up > with the speed at which the data arrives, why do you expect that the > same code, but called from the interrupt, to keep up? > > If you need to move the handling of the data to the interrupt try to > follow the simple rule: no delays in the interrupt (except maybe a few > nops to create a 1us strobe). If feel like inserting a 1 ms delay you > should instead use a state machine: terminate the interrupt and > interrupt again after the intended delay time (timer interrupt). > > Wouter van Ooijen I get it. What I'm getting is that my problem is not really how to transfer data from the interrupt to the main loop, but throughput. I'll try to do some calculation and check if I'm trying to run faster than my legs can go. _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist