On April 11, 2005 02:57 pm, Mike Hord wrote: > > 1-pin? Ok fine. I dare you... Let's see you do it with 0 pins! :) > > > > That's why I put the "more external hardware" qualifier. Resistors > > are external hardware. I'll have to think about the 1-pin solution. > > Seems like it would be a challenge to be able to detect multiple > > keys pressed at the same time. Gee Whiz, Thanks a lot Mike. Now I > > gotta think about this all night :) Yup, you can read multiple keys, but you can't quite do it in the manner Mike is suggesting. Mike is close, but has to change his resistor ladder to R, 2R, 4R.... to catch multiple keypresses and I wouldn't recommend going more than 5 buttons on a plain PIC pin (using the method kRC = T), or 7 buttons on an analog input since by the 7th button you're at 64R (getting close to 1% tolerance values) . -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist