Folks, if you can again be generous with sharing your experience, I can use some help:
I am looking for a chip that do this simple function, but I am having a hard time describing it in a way to Google successfully.
I have a few (5) lines that only one can be ON at a time. It can be represents a number 0 to 5.
(0=none,1=first line, 2=second line, 3=third line, 4=forth line,5= fifth line).
Is there a chip that can take the 5 input and convert it to binary?
So if the second line is on the chip outputs a 010; when the third input line is on output would be 011, forth would be 100, fifth would be 101. It would be ideal if the chip takes up to 7 lines and convert it to 3 bits from 0-7. If it takes 4 input, that would do since I can cascade it.
This is a simple function that a few AND/NAND OR XOR can do. But this is such a simple function I suspect there may be a chip that does it already.
Do you know of a chip that does this? And, is there one that does the reverse?
Thanks,
Rick