I have a a 8-to-4 Multiplexer ICs (MM74hC4052N) and I want to use it as a 8-to-4 encoder or 8-to-3 encoder.
Is that possible? If it is, can drop me some hints on how to do that?
At one glance, I thought this 8-to-4 Mux works by taking inputs (in this case, 8 inputs) and using the select signal, it channels the inputs simultaneously into the 4 outputs.However, after reading the data sheet, I was getting confused. The truth table does not follow what I thought.
Practically, I have 8 switches representing 8 bits of a binary number, and I need to send a 4 bits signal to a microcontroller, representing the 8 bits binary number, using this 8-to-4 IC.
Link to datasheet : http://www.farnell.com/datasheets/89046.pdf