r/AskElectronics • • Sep 26 '26

Is there a Hexadecimal to 7 segment decoder IC

Out of curiosity from a post I saw that used an Arduino to decode 4 bits of input data (from 4 switches) into a hexadecimal digit displayed on a 7 segment LED, I was wondering it there was a hexadecimal to 7 segment decoder IC?

I couldn't find such a beast

I found plenty of BCD to 7 segment decoders such as 74ls47, 74ls48, 4511 and some others, but these only do the digits 0 to 9. They don't decode A to F - at least not "properly".

So, I was wondering if there was a dedicated decoder IC that could take 4 bits of input data and decode the digits 0 through F inclusive for display on a seven segment display?

To be clear, I get that I could do this with something preprogrammed such as an EEPROM or my own digital logic. But I was wondering about a specific chip along the lines of the 74ls47 (etc) that was specifically dedicated to decoding a full 4 bits into a hexadecimal digit.

TIA

Update

It seems like a suitable chip isn't available any more - at least not for the specific use case I had in mind.

The reason I went in search of it was because someone was sharing their Arduino (i.e. AVR) project where they recreated an old binary to hexadecimal "decoder" box that they saw as a kid.

I was going to suggest trying to do it with just electronics and give them a clue being a currently available Hex -> 7 segment decoder.

Since they already used an Arduino to do this, options like SPI or using a Microcontroller weren't really meeting the requirements I had in mind.

I was really looking for a single IC that, without programming (which in my mind excludes the EEPROM option), could decode 4 bits of hexadecimal input into a 7 segment display - as per the 74ls47 (and friends) can do but just for BCD.

Anyway, thanks for all of the replies.

Update 2 - there is a part still available?

I just found that one chip that meets the need is still available: https://www.digipart.com/part/MC14495P1

I don't plan on buying it - especially at that price, and I've not heard of digipart before. But it is interesting that they claim to have 3 of them (when I looked). https://www.digipart.com/part/MC14495P1

16 Upvotes

47 comments sorted by

22

u/CranberryInner9605 Sep 26 '26

MC14495P1

7

u/gm310509 Sep 26 '26 edited Sep 26 '26

Thanks that looks like it would do the trick.

I don't know why I couldn't find it myself (I did try before posting).

I couldn't find it on mouser, digikey nor Core Electronics, so I guess it isn't available anymore, but that doesn't matter so much, I was more curious as to whether something like this actually existed or not and found it hard to believe that it might not.

Thanks for your reply.

3

u/sickofthisshit Sep 28 '26

It seems to be in stock at "Futurlec", which gives me the vibes of a hobbyist-tier surplus place.

https://www.futurlec.com/Motorola/MC14495P1pr.shtml

Unfortunately, as far as I can tell the thing you are asking for is reasonably obsolete.

But I did find a curious part, the UWM  ET6226M, which is available from Digikey and listed as Active status, and it takes a two-wire serial command from a microcontroller, but looks like it can drive 4 7-segment displays with arbitrary patterns. 

20

u/JonJackjon Sep 26 '26

Have you considered googling "Hexadecimal to 7 segment decoder IC"?

0

u/gm310509 Sep 26 '26

Yep, except I used "Integrated Circuit" rather than IC in my search.

All that came back were the BCD ones. There was one that claimed to be hexadecimal in the search result headers CD74HC4511, but when I looked at the datasheet it also was just BCD.

3

u/javawizard Sep 26 '26

Every 4511 I've ever used has decoded hex properly as well.

I don't know if that's a universal property though. The CD4511 is the only one I can recall the specific part number off the top of my head.

1

u/gm310509 Sep 27 '26

Interesting, the datasheets I found define the values above 10 (0x0A) as blank. The 74ls47 and 74ls48 claim to do something with the values above 10 (0x0A), but for some reason they display "funky" values.

This is from the combined 74ls47 and 48 datasheet.

I don't know why they output the "funky" patterns, but it looks like they just didn't bother with the necessary number of AND gates and connections to deal with the 16 possibilities of hexadecimal.

Or, maybe it was because when these chips were designed, it was in a day and age where they thought nobody would bother with something as complicated as hexadecimal, especially when everybody who was not insane was using a "proper system" like Octal or Binary. :-)

1

u/anothercorgi Sep 29 '26

Not sure if you ever took logic design classes but one can define a "don't care" situation where it's chosen that it doesn't matter the output is a low or high based on the input pattern. Don't cares are used for patterns 0xa to 0xf because these should never happen for BCD, Since they literally don't care, it will produce whatever pattern that would reduce the number of logic gates. This leads to smaller logic during optimization so fewer transistors are needed on the IC, The 7447 is an old IC and every transistor is deliberate for those old ICs.

By the time CMOS CD4511 and MC14495 came out, they got rid of the don't cares and specifically told it to send out a low or proper hexadecimal digits instead. Should they have done the right thing from the get go? Sure, technically it's not way too many more transistors but there were no CAD tools to help draw the lithography masks for the ICs...

5

u/anothercorgi Sep 26 '26

I had some cd4511s along with the 7447 and 7448, and also a few MC14495s. The TTL 7448/7447 didn't fully decode the digits above 9 and you get strange partial patterns. The cd4511 IIRC blanked the display if you had a binary input that was not a valid BCD digit. The MC14495 was the only one I knew of that decoded A b C d E F for the non-BCD 4-bit patterns.

Yeah nowadays a LUT either in microcontroller firmware or perhaps programming a PLA will have to do, though it appears you still can get old stock MC14495's. (I think I still have a few pieces in my CMOS IC pile...)

1

u/jones_supa Sep 26 '26

The CD4511 (12 V) and CD74HC4511 (5 V) are BCD chips, though. I do not see how they could support hexadecimal even as undocumented functionality.

4

u/gscalise Sep 26 '26

CD74HC4511's datasheet actually defines it. It's "blank".

1

u/WRfleete Sep 26 '26

All the ones I’ve used blank the digit if you give if a value more than 9 in BCD

3

u/Enlightenment777 Sep 26 '26 edited Sep 26 '26

Currently no IC company manufactures such an IC, an obvious opportunity for an asia or india IC company.

All of the following were binary to hex 7seg decoders, but all are now obsolete:

  • Motorola MC14495-1
  • National DM9368
  • National DM9370
  • National MM74C917

Alternate solutions:

  • EEPLD, such as Microchip ATF16V8BQL & ATF22V10CQZ
  • EPROM
  • 8bit MCU, such as Microchip ATtiny family

1

u/gm310509 Sep 27 '26

Yeah, it seems that way (all obsoleted and out of production).

I don't know if you saw some of my other comments, but the reason I went in search of it was because someone was sharing their Arduino (i.e. AVR) project where they recreated an old binary to hexadecimal "decoder" box that they saw as a kid.

I was going to suggest trying to do it with just electronics and give them a clue being a currently available Hex -> 7 segment decoder. Alas, as you pointed out, they are not so easy to obtain.

The EEPROM method is still a viable option. I get that an EEPROM is a great option for a character generator for a character mode video screen and could be used for this exercise as well, but it just feels like it isn't the proper way. I know that is crazy talk, but I guess I was hoping that there was a Hex to 7 segment decoder still available - especially since for this guy (and me) it would have been a nice trip down memory lane.

2

u/Southern-Stay704 Sep 26 '26

I did this research about 4 years ago, and came to the conclusion that the optimal option was a microcontroller.

https://www.reddit.com/r/electronics/s/Sa8MMrWMzM

In terms of cost and board size, it beats all other options.

1

u/gm310509 Sep 27 '26

Except that is not what I was looking for.

I updated the original post with an expansion on why I was looking for an IC. Basically someone did that to recreate a decoder they saw in their childhood using an Arduino - which the original probably didn't use. And I was going to suggest that they try to recreate it without a microcontroller.

3

u/Southern-Stay704 Sep 27 '26

If you want to do it with a single IC that's purpose-built and doesn't require programming, then the only option is to find (and pay for) someone who has one of the rare very old chips that did this, like the MC14495 you found.

If you're ok with period-correct hardware, but multiple ICs, you can build the decoder out of 74 series logic chips.

4

u/NE558 hobbyist Sep 26 '26

MC14495 iirc but that is obsolete part.

I used myself ATF16V8 PLD's for this job like 15-20 years ago. It was displaying content of address and data bus in my homebrew Z80 computer.

1

u/duane11583 Sep 26 '26

its not hard to do this with gpios

and if you have several digits its just a tiner interrupt and some mulitplexing sw

1

u/gm310509 Sep 27 '26

That is true, but I think you missed the point of my post.

I've added an update that explains why I'm looking for the chip.

Basically someone already did what you said with an Arduino. I was going to challenge them to do it the "old fashioned way" with a circuit that didn't involve programmable components.

1

u/duane11583 Sep 27 '26

ok was not clear… another approach might be a cpld or a gal you dan program

1

u/duane11583 Sep 26 '26

also if you are out of pins… consider a 74ls595 hooked up in spi mode you can create many io pins that way

6

u/anothercorgi Sep 26 '26

I remember using CMOS MC14495's to quickly display hex on 7-seg. Nowadays it's easier just to do it in software....

1

u/tes_kitty Sep 26 '26

Only if you have 7 or 8 free GPIOs. If it's less then such a decoder IC still lets you hook up a display.

3

u/i_invented_the_ipod Sep 26 '26

You only need 2 GPIOs for an SPI LED display driver. Or a current-sink shift register.

1

u/tes_kitty Sep 26 '26

Yes, but that needs extra software and a specialized interface (SPI) or bit banging GPIOs.

3

u/Linker3000 LED astray Sep 26 '26

Shameless plug for a GAL-based version:

https://github.com/linker3000/GALBinaryTo7Seg

1

u/tlbs101 Analog electronics Sep 26 '26

TTL type 7447 (74LS47), or the CMOS 4511. The 7448 is
BCD to 7-segment, if you don’t need A-F displayed. The ‘47 and ‘11 are both for common anode displays. The ‘48 drives common cathode displays

3

u/gm310509 Sep 26 '26

I was looking for A through F to be handled properly.

My question was spurred by a newbie who posted a recreation of an MCU based "binary to Hexadecimal" black box circuit they saw as a kid.

My thought was to challenge them to do it via a digital circuit and offer a clue being a PDF to a hexadecimal to 7 segment decoder datasheet. But alas, my own searching came up short, I only found BCD, not hexadecimal, decoders.

2

u/gscalise Sep 26 '26

'11 won't display A-F either.

2

u/EmotionalEnd1575 Analog electronics Sep 27 '26

I was reminded of the TIL311.

Back in the day these were “magic”!

I still have a few on my bench.

1

u/crb3 Sep 26 '26

There's an ancient Fairchild TTL chip that does this: DM9368.

1

u/darni01 Sep 26 '26

Xinluda (Asian manufacturer, they sell through LCSC) sells a XD7221 in DIP24/SOP24 versions that are controlled via SPI and can drive 8 digit 7-segment displays arbitrarily (you'll have to do more software).

I-core has a similar family, aip16xx, some of them have a keyboard matrix controller

1

u/EmotionalEnd1575 Analog electronics Sep 27 '26

I’m not aware of any ICs for this function that are still available. There were some that are now obsolete.

It can be implemented easily in a single chip MCU. Four input lines A-D and seven output LED segment drivers.

1

u/nixiebunny Sep 26 '26

I think the reason these chips never existed was that by the time that they were needed for microprocessors, circuit designers realized that the 7 segment decoder could be written into the software, so there was no market for the hardware solution.

1

u/TheLimeyCanuck Sep 26 '26

They did exist, but they were always niche.

1

u/nixiebunny Sep 26 '26

The only ones I have seen with my eyes are built into HP and TI display modules. And they’re not 7 segment, but have controllable corner dots.

0

u/Creative_Shame3856 Sep 26 '26

I remember playing with the TIL311 display modules ages ago and reading somewhere that you could buy the chip that ran it by itself but heck if I can remember what the designation was. Maybe it lurks in TI's old datasheets?

Clickety click on t3h interwebz

MC14595 is what I was thinking of, and lo but they are long out of production too. Pretty sure Radio Shack used to have them.

Maybe a really cheap microcontroller with ≥11 gpios? It's a crap solution, but it's a solution. Probably want a strobe and a blank input too so ≥13 gpios I guess. You could always go the eprom route if you have them sitting around. Or a 74HC154 and a bunch of diodes and a handful of transistors to drive the segments. If it's stupid but it works........

4

u/gm310509 Sep 26 '26

That TIL311 looks like it is an interesting one - if I read it correctly it is an integrated unit including both the decoder and individual LEDs that render the digit.

Someone else suggested the MC14495P1 but that also doesn't look like it is readily available, I tried mouser, digikey and core electronics none of which had it. It doesn't matter that much, i was more curious as to whether such a chip existed or not and found it hard to believe that it might not after my searching.

Thanks for your reply.

3

u/quuxoo Sep 26 '26

I have a few TIL311 in my box of opto parts. Quite dim by today's standards but they're very cool to look through the red cover epoxy and see the chip and the bond wires.

0

u/AffekeNommu Sep 26 '26

Some shift registers, clock the values and latch them. Easy done with Arduino

1

u/gm310509 Sep 27 '26 edited Sep 27 '26

That is true, but not what I was looking for.

I updated my post with more info that hopefully explains better why.
Basically someone already did that and i was going to challenge them to try without the Arduino,

0

u/tes_kitty Sep 26 '26

In addition to all the specialized ICs and an MCU with software that were mentioned so far, you can also use an old EPROM that you program the proper bit patterns into.

Total overkill of course, but if you have a 2716 or 2516 laying around and just need one...

0

u/[deleted] Sep 26 '26

[deleted] — view deleted comment

1

u/gm310509 Sep 26 '26

That was what the post was that prompted my to ask the question.

It was from a newbie that recreated the "binary to hexadecimal decoder" black box that he saw in a computer museum as a kid.

I was going to reply and propose the challenge as to whether he could do it with just electronics (i.e. no Microcontroller). I was going to give him a clue - a link to a PDF of a hexadecimal to 7 segment decoder IC - but came up short in my searching.

Thanks for your reply.

1

u/Linker3000 LED astray Sep 26 '26

1

u/gm310509 Sep 27 '26

Thanks, but that is much more complicated than what I was looking for plus I was not wanting something that needed programming (which is why I ruled out the EEPROM option).

Thanks anyway.