??? 05/29/06 08:05 Read: times |
#117215 - derivative with interrupt on pin change Responding to: ???'s previous message |
If you can find a derivative with interrupt on pin change, you can do this with no additional hardware devices.
I usually do this on the PIC (sorry folks) to wakeup from sleep. How ? - On initialisation, I set the port (8 bits to scan a 4x4 matrix) to 0xf0 where the columns are set to F and rows are set to 0. Set the port columns to interrupt on change. Now, whenever a key is pressed, I get an interrupt. On seeing the interrupt, I scan the matrix to get the key/s. This is a very effective way to wake up the CPU on a keypress and conserve battery power if you will. Sorry to be very verbose, but I hope this helps. Perhaps you can find a derivative on Philips with an interrupt on pin change Jerson |