Hi Mat

Thank you for replying. I'm still unable to fathom out how this helps. Please put me right. While...Wend allows me to check the pin status while, for example, the pin is high but if the timekeeper holds down the microswitch then the pin will be held continually high and my 'checking' will continue and therefore continue to decrement the following counter etc. What I want is the pin to go high from the timekeeper, check the circuit (decrement the counter) and be unable to check again until the pin has gone low (timekeeper releases the microswitch) and then goes high again (he presses it again). Every time he presses his switch the value in the EEPROM is decremented towards zero. If the pin is held high continually, how do I stop the loop rolling round and repeadedly decrementing the counter?

Adrian