Multiplexing

When there are more number of Input/output interfaces than the number of pins we use the concept of pin sharing. Thus whenever there are more number of LEDs or push buttons we use multiplexing as one of the methods.