Do not use EEProm in an interrupt handler.
The amount of time the writing takes is too much for an interrupt
No other interrupts can be taken care of.
That would mean: if EEProm component uses an interrupt the system hangs.
Solution: Set a flag in the handler which you check in your main loof and act accordingly upon.
Thank you BOB
i did same at yesterday night!!