The idea is device dependent because it might be on a pic that is constantly on or constantly off (like a remote control).
Timer is one resource, times operated is another. EEPROM storage is the place to store our variable to check for... passing away.
Will come back with more practical ideas.
Ioannis
Bookmarks