This is a simple and economic way of scanning a 4x4 keypad (telephone type). It uses only 4I/O pins on the uC and a 4051 cmos analog multiplexer.
Example uses the 2313 w. circuit connected to portd 3..6. It outputs the current scannend key on portB
nilton_61@hotmail.com