This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to write a debug.ini to simulate 4*4 keypad conntected with P1??

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); }

P4 &= 0x0f; twatch(200); P4 |= 0xf0;

}

Parents
  • 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

Reply
  • 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

Children