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); }
}
i want to write a signal in debug.ini,like this ... it can't works,Do you have any solution about it?
nope, I would not even dream about using the simulator. I have one question: how would you 'simulate' switch bounce? how would you know if it was a) less or b) way more than your actual switches? one would lead to failure in the actual product, the other to a far too slow operation.
all a simulator does is simulate, have you tried simulated sex, it is about as equivalent.
Erik
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.