Patent ID: 8817994

Claim:
A method comprising: detecting a first transition of a port from a coupled state to an uncoupled state using a first signal; debouncing the uncoupled state of the port using an oscillator; maintaining operation of a second state machine while the uncoupled state of the port is debounced; disabling the second state machine after successfully debouncing the uncoupled state of the port, wherein the disabling the second state machine includes isolating a bias signal from the port to provide a low-power operating mode; and wherein the debouncing the uncoupled state of port includes: resetting a counter; detecting if the uncoupled state of the port has changed; if the uncoupled state of the port has not changed, the method includes: incrementing the counter; checking if a value of the counter has reached a threshold value; if the value of the counter has reached the threshold value, the method includes indicating a successful debounce of the uncoupled state of the port; and if the value of the counter has not reached the threshold value, the method includes jumping to the detecting if the uncoupled state of the port has changed.