On Mon, 22 Dec 1997, Jason Wolfson wrote: > Does anyone have any clever, low parts count > methods of multiplexing 3 pushbuttons onto > 2 port pins? > > Thanks > Jason Wolfson > Lipidex Corp > > jason@lipidex.com > PTM: First approximation: 74147. If you only have one finger, you can do like this: + ------X----X-----X V =diode | | SC Sx =switch V V V X =connection SA SB X-X R =resistance | | | | X----------X------------ PB0 | | X-------X---------- PB1 R R - -----------X-------X Here the SC switch gives the same code as SA and SB pressed together. -------------------------------------------------------------------------- PTM, pasi.mustalahti@utu.fi, ptmusta@utu.fi, http://www.utu.fi/~ptmusta Lab.ins. (mikrotuki) ATK-keskus/Mat.Luon.Tdk OH1HEK Lab.engineer (PC support) Computer Center OI7234 Mail: Turun Yliopisto / Fysla, Vesilinnantie 5, 20014 Pt 02-3336669, FAX 02-3335632 (Pk 02-2387010, NMT 049-555577) --------------------------------------------------------------------------