> In my application speed is important. So I need to detect a keypress > with a minimum amount of instructions. Huh? Isn't there going to be a human pressing the key? If so, speed may need to be "fast" in human time, but certainly not in instruction time. I routinely use 50mS debounce or delay time on buttons pressed by humans, and the result still feels instantaneous. 50mS is *many* instructions. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu