Log in

View Full Version : Special BC to 16 Pin Encoder



Main
01-16-2012, 09:42 PM
*I meant BCD to Binary/16 pin*
Hey there, I am currently working on a display module that has a truth table of this
http://img705.imageshack.us/img705/9830/bcdto16.png

But so far I could only find stuff that like this

http://img210.imageshack.us/img210/1892/newarkh.png

Is there a type of encoder for the truth table I am looking for? If not, I could program one but I don't know any 20 pin programmable chip :( If any one here does know tho, please do tell :P

I am currently looking on http://canada.newark.com/decoders-encoders cause this website can do a fast shipping to a local store in my town, but if any one know where to get a chip that contains the truth table I need, or just a website that has good micro controllers for sale, please do list some:p

If any one know any other programmable 20pin (or more) microcontroller, could you kindly please list them?

Any help would be greatly appreciated, thanks lads!

Markus
01-16-2012, 10:29 PM
You got a truth table, just use a LUT? Heck you could even do this with some nand gates, get Karnaugh out there and do it.

Main
01-16-2012, 10:35 PM
I am a bit new at this:( I guess I could use nand gates, but I just need a chip that has this table, which would go on a pcb.

Markus
01-16-2012, 10:59 PM
I doubt you can find those. As you want something really easy, getting a microcontroller/FPGA/PAL really isn't worth the cost. This is also something not that easily done in logic, your best bet would be some kind of multiplexer..

Bit 0: 3x OR port (In0 or In1, In2 or In3, Or1 or Or2).
Bit 1: (In0 or In1) or In2
Bit 2: (In0 or In1) or (In2 and In3)
Bit 3: (In0 or In1)
Bit 4: In0 or (In1 and (In2 and In3))
Bit 5: In0 or (In1 and In2)
Bit 6: In0 or (In1 and In2 and In3)
Bit 7: In0
Bit 8: In0 and (In1 or In2 or In3)
Bit 9: In0 and (In1 or In2)
Bit 10: In0 and (In1 or (In2 and In3))
Bit 11: In0 and In1
Bit 12: (In0 and In1) and (In2 or In3))
Bit 13: (In0 and In1) and In2
Bit 14: (In0 and In1) and (In2 and In3)
Bit 15: always 0

etc
Just work your way from down there.
As you can see, you can combine tons of gates. (lots of In0 and In1, In2 or In3), remember, commutative and distributive laws apply.