Hi. Im not sure how to use interrupts yet, I've read around on this site and others, but none has given me much information on how to do the thing.
Anyway, I want to use interrupt to update my IR sensors at a constant rate, 20 times a second (50ms delay).
This is three global variables which I want to update at the specified rate.
Left = sharp_IR_interpret_GP2Y0A02YK(a2dConvert8bit(0));
Front = sharp_IR_interpret_GP2Y0A02YK(a2dConvert8bit(1));
Anyone care to explain to me how I can use interrupt to update these variables 20 times a second? Is it even recommended?
Thanks for any help