I'm sampling until a pin is set to high from external switch. Once the swich is high i stop sampling. The reason i want to use external switch is that i could not use TMR0 correctly to time 65s. If i can time it to some period round 65s i would rather have that.

I thought the 10mS for writing the EEPROMs is requied for only the EEPROM-device. I though while the 24LC256 is writing the data the PIC will be free to do other stuff (the feeling i got from PicBasic Pro manual). I didn't totaly think about the 60mS window . . .

What if i sample every 10mS and 20mS for 65s and then do the writng. Will still the 60mS window be there? If thi is the case i got a lot of things wrong . . . how can solve this problem?

Best Regards,
Tom.