14

I need to buy a few logic ICs. Which family should I get? HC? HCT? Which kind is best to have lying around in a parts box, for maximum compatibility with unpredictable future projects? Wide supply range, no extreme frequency requirements, etc. Schmitt inputs? Open outputs?

endolith
  • 28,494
  • 23
  • 117
  • 181

4 Answers4

13

HC is the most useful. It has a very wide supply voltage range, is easy to interface to most MCUs, has good noise immunity, has plenty of speed, and is widely available. HC is also available as single gates in tiny packages. Forget TTL and LS TTL, no one uses them for new designs these days.

It's also worth learning to use CPLDs, Using them often makes a lot more sense than designing with individual logic chips.

Leon Heller
  • 38,774
  • 2
  • 60
  • 96
  • Doesn't the CD4000 series have a wider supply range? CPLDs make more sense than 1 or 2 logic ICs? – endolith Mar 08 '11 at 21:12
  • low-range CPLD are indeed might be more useful than 1-2 complex/rare logic ICs, as availability & price is very stable. – BarsMonster Mar 09 '11 at 08:56
  • Could you provide additional pointers on getting started with CPLDs? Thank you. – Sabuncu May 31 '15 at 22:14
  • Just buy one of the many kits that are available, such as this one: https://www.altera.com/products/boards_and_kits/dev-kits/altera/kit-max-v.html – Leon Heller May 31 '15 at 23:32
5

You’ll actually want AHC(T) instead of HC(T). HC(T) is okay, but there is little reason not to choose AHC(T).

Other families I will reject include AC and its low-voltage equivalent, LVC. These families have sub-nanosecond rise times, too fast for a breadboard. I also recommend avoiding the bipolar TTL families, including 7400 TTL, STTL, LSTTL, AS, ALS, F, etc. Bipolar logic has become basically outmoded. And it goes without saying to avoid using any ECL 10k or 100k parts, but those are probably outside of the awareness of most beginner electrical engineers.

20 years ago, TI had the following marketing points for their then-new AHC logic family:

“Graduate to new performance levels with AHC... • 3-times faster than HCMOS • Half the static power consumption of HCMOS • Same low noise as HCMOS ...for the same market price as HCMOS.”

TI’s claims about AHC are correct.

The most important thing to hobbyists is edge rates. They want to be able to use ICs without much or any regard for transmission line effects. Because of their nasty parasitic elements, breadboards demand transition speeds of a few nanoseconds at least. AHC has the same rise and fall times as HC, so the usability on a breadboard is similar.

AHC devices share the wide operating range of HCMOS, but are also 5V-tolerant when run from a lower supply voltage. This is a really useful feature which I have always felt was missing from HCMOS. AHC’s output drive current is slightly greater than HC, but still just 8 mA max at 5V. This contributes to the slow edges and good signal integrity on a breadboard we expect from AHC and HC.

See TI’s full AHC(T) designer’s guide for more details: http://www.ti.com/lit/ug/scla013d/scla013d.pdf

Now, I’ll give some further clarification on the “T” variants: HCT, AHCT, ACT, etc. The “T” stands for TTL-compatible inputs. If the chip is to receive signals from a bipolar TTL device, incl. 7400, 74S, 74LS, 74ALS, 74F, then you must either choose a “T” device, such as HCT, or use a 5V-tolerant non-“T” device run at 3.3V or so, and design your system to accommodate the 3.3V output levels.

Zane Kaminski
  • 920
  • 6
  • 13
2

HCT is nice. All the advantages @Leon Heller mentioned, but also TTL compatible inputs. If you need speed, consider ACT. Ti's Logic Guide has lots of details.

Brian Carlton
  • 13,252
  • 5
  • 43
  • 64
  • 2
    There must also be a downside, or HCT would be the only thing that exists. – endolith Mar 07 '11 at 00:50
  • HCT is 5 V (4.5-5.5 V). HC is roughly 2-5 V. http://focus.ti.com/lit/ds/symlink/sn74hct244.pdf http://focus.ti.com/lit/ds/symlink/sn74hc244.pdf – Brian Carlton Mar 07 '11 at 03:15
  • 1
    ... Then again... Powered at 5 V, HCT will accept logic levels provided by other ICs that use 3.3 V, i.e.: It can be used for interfacing between parts of your circuit that run at different supply voltages. You cant't use the output of 3.3 V logic at the inputs of HC gates that run on 5 V rails. – zebonaut Mar 07 '11 at 06:58
  • Seems like this is mainly intended as a replacement for TTL? "These devices only work with a 5V power supply. They form a replacement for TTL, although HCT is slower than original TTL (HC logic has about the same speed as original TTL)." – endolith Mar 08 '11 at 20:55
  • 2
    I wonder why there's no family which would behave like HCT when given a 4.5-5.5 volt supply, but which would be specified for operation outside that range [e.g. with VDD/2 specified as representing a logic high]? Such a device would seem useful for easy interfacing between any two "consecutive" voltage levels [3.3V to 5V, or 2V to 3.3V, etc.) – supercat Dec 30 '13 at 17:36
  • 1
    Some of the technologies have the input voltage thresholds defined as ratios of the supply voltage, others have them a certain number of diode drops above ground (or below Vcc) so the thresholds do not always work if the supply voltage is varied. Some technologies do not drive the high currents that the older technologies required, others drive hard to the rails and this consumes current in some of the other technologies inputs. Great minds have made the best of a messy situation. Modern stuff is mostly CMOS style levels at various voltages. Some designs require the uneven drive to work. – KalleMP Nov 05 '14 at 14:14
  • The downside the same as the upside. AC(T) has higher drive strength and faster transition times. this is helpful when building a high-speed system, but makes constructing circuits on a breadboard difficult. I recommend AHC(T) for use in those cases. – Zane Kaminski Dec 11 '17 at 03:09
  • 1
    TTL compatible inputs is actually a disadvantage in the general case. The only time that helps is when you are receiving signals driven from true TTL. That's pretty rare these days. – Olin Lathrop Dec 11 '17 at 11:39
2

With its wide operating voltage and general availability, I'd agree that HC is the most useful family to keep around. If you're working with designs that require very high speed or extremely low power, you're not really in the realm of general purpose anymore.

It is pretty common to run into mixed power supply situations, though, like needing to go from 5V to 3V or vice versa. HC has CMOS inputs and input protection diodes, so it's not a very useful family for logic level translation. You can make 5 to 3 work with input resistors to limit the diode current, but it's not ideal. For 3 to 5, you might just be out of luck.

For 5V to 3V (5V inputs driving a chip powered by 3V), AHC and LVC have 5V tolerant inputs and work well.

For 3V to 5V, you need a family with TTL-compatible inputs, so that the lower 3V signals will satisfy the high input voltage requirement of the 5V powered chips. For that, families like HCT and AHCT are useful.

Unfortunately, there's no general family that can be powered from any voltage and accept inputs of any voltage, although there are plenty of specialized level-shifting buffers (some bi-directional) that have separate power supply pins for just this purpose.