??? 06/28/06 13:52 Read: times |
#119263 - He does not Responding to: ???'s previous message |
Erik said:
...please do not even consider this extremely annoying ... "key detection on release" approach. He does not consider any "key detection on release", which you can see when you have a look at his algorithm: Arvind said:
1) Start
2) Intitialize the timer and interrupts 3) Is any key is pressed ... If YES then goto STEP - 4 else goto STEP - 2 4) Is the key pressed is valid ... If YES then goto STEP - 5 else goto STEP- 2 5) Is the key pressed is hited the 1st time or second time ... If hit 1st time then got to STEP - 6, else goto STEP - 7 6) Make the corresponding LED glow ... goto STEP - 8 7) Make the corresponding LED OFF 8) Is the key pressed is released ... If NO ... repeate the same STEP ... 9) goto STEP -2 Arvind should see, that the detection of "key is released?" is not needed, because it is already part of the detection of "key pressed is valid?". Kai |
Topic | Author | Date |
Multiple switch debouncing | 01/01/70 00:00 | |
Otherways | 01/01/70 00:00 | |
Vertical counters | 01/01/70 00:00 | |
vertical conters in C | 01/01/70 00:00 | |
and here | 01/01/70 00:00 | |
vertical counter with press detection | 01/01/70 00:00 | |
debounce and denoise needed | 01/01/70 00:00 | |
You are right of course, but... | 01/01/70 00:00 | |
Reminds me... (off topic) | 01/01/70 00:00 | |
XRL P2,A | 01/01/70 00:00 | |
some hair-splitting | 01/01/70 00:00 | |
exchange | 01/01/70 00:00 | |
thanx Kai ... | 01/01/70 00:00 | |
my way | 01/01/70 00:00 | |
exactly! | 01/01/70 00:00 | |
Spot on. | 01/01/70 00:00 | |
Two samples enough? | 01/01/70 00:00 | |
varies with design | 01/01/70 00:00 | |
Conditional executing versus branching | 01/01/70 00:00 | |
KEY RELEASE SUBROUTINE ... | 01/01/70 00:00 | |
Not really... | 01/01/70 00:00 | |
a TOTAL misconception or -very annoying | 01/01/70 00:00 | |
He does not | 01/01/70 00:00 | |
Beer o'clock | 01/01/70 00:00 | |
Yes, good idea | 01/01/70 00:00 | |
never did, never will | 01/01/70 00:00 | |
Agree![]() | 01/01/70 00:00 |