I would like to know how to implement a power on/off switch like on cell phones where you hold a certain button down for x amount of time and the unit turns on or off. Then, when the device is running the button can be interfaced to a uController for normal input.