i write a function ,but it not works at all.. how can i do? signal void key_s1() { while((P4 &0x0f) != 0) { twatch(10); }
P4 &= 0x0f; twatch(200); P4 |= 0xf0;
while((P4 &0x0f) != 0) { twatch(10); }
}
Maybe he isn't interested in simulating the debounce logic, but want to be able to send commands to his application, and debug the application behaviour based on received keystrokes.
It is possible to write a debugger script that uses a random time of bounces before settling.