I need to find an Integrated Circuit Encoder that converts inputs (push botton) to its corresponding binary code, as in the table. Can anyone tell me any? I found something similar that was the IC 74147, but the same is obsolete.enter image description here

  • 2
    \$\begingroup\$ The 74HC147 isn't obsolete. \$\endgroup\$ – Steve G Oct 25 '17 at 11:26
  • \$\begingroup\$ Could you send me the link where I can buy it? Because in my country I did not find it. \$\endgroup\$ – Eduardo Cardoso Oct 25 '17 at 12:31
  • \$\begingroup\$ I don't know which country you're in. Link \$\endgroup\$ – Steve G Oct 25 '17 at 12:35
  • \$\begingroup\$ Digikey serves a great many countries, and a 74HC147 costs less than 70 cents. \$\endgroup\$ – WhatRoughBeast Oct 25 '17 at 12:43
  • 1
    \$\begingroup\$ YOu already asked this and it was answered.... electronics.stackexchange.com/questions/335949/… \$\endgroup\$ – Trevor_G Oct 25 '17 at 12:55

Look up something called a priority encoder.

However, a function like this is rarely needed in isolation. In that case, this is something you do in firmware in the microcontroller that is already there for other reasons.

Even with no other reason, a microcontroller might be a good idea if bouncing of the buttons would cause problems. Consider what happens while a button bounces. The output code could possibly appear to go thru lots of states as each line toggles between 0 and its value to represent that button.

  • \$\begingroup\$ ...and when uC's are more cumbersome or expensive, a low pin-count CPLD works great. Both solutions often help out in other parts of the circuit as well. A programmable solution is very forgiving when incorporating downstream design changes and variations. \$\endgroup\$ – Chris Knudsen Oct 25 '17 at 12:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.