×

Sensor signal debouncing

  • US 7,092,850 B2
  • Filed: 09/29/2005
  • Issued: 08/15/2006
  • Est. Priority Date: 02/17/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • retrieving a present sensor reading;

    incrementing a reading change counter and setting a stable reading counter to a predetermined value in response to the present sensor reading not equaling an immediately previous sensor reading;

    reporting a sensor reading bouncing error and resetting the reading change counter to a predetermined value in response to the reading change counter being greater than or equal to a reading change tolerance;

    incrementing said stable reading counter in response to the present sensor reading equaling the immediately previous sensor reading;

    resetting said stable reading counter and reading change counter to a predetermined value in response to said stable reading counter being greater than or equal to a stable reading tolerance;

    reporting a state change event and setting said most-recent stable sensor reading equal to said present sensor reading in response to said present sensor reading not being equal to said most-recent stable sensor reading; and

    setting said previous sensor reading to said present sensor reading.

View all claims
  • 4 Assignments
Timeline View
Assignment View
    ×
    ×