Oscar T. wrote: >>I use a keyboard matrix .... >> .... of a number of other peripherals which are >>less timing sensitive. >> > > > That seems ok, but what is it the erroneous behaviour? > > Oscar Sometimes keys get detected that haven't been pressed. I suspect this is some sort of interrupt-based problem. Some variable involved is getting corrupted, or something like that. It doesn't exhibit this behaviour if I don't use interrupts. That's why I'm suspecting that not all the registers are properly saved before entering the interrupt handler. Andrew -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist