??? 09/20/06 17:03 Read: times |
#124694 - I did not discuss Responding to: ???'s previous message |
I said:
"the 'usual' method is to look for a key in sleep mode an to look for 'no key' in awake mode. on the 'no key' interrupt you can set the look for keey again to catch keys during awake." I do not undestand why KBIF may not be used when uC is awake I did not discuss using the KBI in "awake" (if I gave that impression, sorry). What you need to do is to set the (mis)match to something that you want to generate the interrupt. This can be tricky, but here is something to try: On KBI set the interrupt to match "no key" this wil generate an interrupt when the key is released. On that interrupt set the KBI for mismatch "no key" which then will give an int on the next keypress. HOWEVER, that would be 'silly' the KBI is singularily unsuited for anything but "wake up" because it interfer with debouncing which is so much easier done with a keyscan in a timer interrupt. Erik |
Topic | Author | Date |
LPC 9xx Can't clear KBIF | 01/01/70 00:00 | |
Turn it off? | 01/01/70 00:00 | |
I could turn it off | 01/01/70 00:00 | |
to turn the KBIF, you have to change the condition | 01/01/70 00:00 | |
Thanks Erik - I'll give it a go | 01/01/70 00:00 | |
an added comment | 01/01/70 00:00 | |
What is the rate of change on the input signals? | 01/01/70 00:00 | |
nothing of value except the ability to wake up the | 01/01/70 00:00 | |
Interrupt for pulse train | 01/01/70 00:00 | |
that's basically what the KBI does | 01/01/70 00:00 | |
Rate of change ~<100kHz | 01/01/70 00:00 | |
why not? | 01/01/70 00:00 | |
I did not discuss | 01/01/70 00:00 | |
It is ok but KBIF is set forever | 01/01/70 00:00 | |
that you do not clear the reason | 01/01/70 00:00 | |
I change the state of the pin before | 01/01/70 00:00 | |
could be the problem | 01/01/70 00:00 | |
Simulators problem![]() | 01/01/70 00:00 | |
Remote Control using AT89C2051 schematic | 01/01/70 00:00 | |
just great | 01/01/70 00:00 | |
Another BS answer. | 01/01/70 00:00 | |
No BS, I did | 01/01/70 00:00 |