??? 04/06/06 16:06 Read: times |
#113741 - detecting end of bounce? Responding to: ???'s previous message |
Kai Said:
The final 0 to 1 toggling at "D1" marks the end of bouncing. Kai the method you have described is fine. i can start a timer of 8254 when i sense a logic change at D1. But when to stop! How could i know for the last bounce? Kai Said: The first 10µsecs, nothing. Because the contact tongues need a certain time to "travel", due to inertia of mass. So, "D1" is "0" during this turn-on delay. Secondly, i would like to make it clear with port pin logic! Having the pullup setup described by you, i would do the following. Activate DRV1 Set all data lines to logic "1" (255h) at the address of switch_close. so compare the data lines with 253h (to detect logic "0" at "D1"). If found equal start timer. So this starts the measurement. But not sure of detecting the last bounce Kai. Is it so simple that iam lagging some thought? Could you assist me with that. Thanking you, Suresh. |