Author Topic: So the 74x138 is pretty cool...  (Read 4183 times)

0 Members and 1 Guest are viewing this topic.

Offline alank2Topic starter

  • Super Contributor
  • ***
  • Posts: 2188
So the 74x138 is pretty cool...
« on: March 14, 2018, 03:24:15 am »
I saw someone using it to mask out signals to decode addresses to memory/ROM.  It essentially gives you 3 configurable inputs (you choose high or low), 2 lows, and 1 high.  A very useful logic chip.

Like this, what other logic chips are good to know about and can do unique things!
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: So the 74x138 is pretty cool...
« Reply #1 on: March 14, 2018, 03:38:34 am »
I saw someone using it to mask out signals to decode addresses to memory/ROM.  It essentially gives you 3 configurable inputs (you choose high or low), 2 lows, and 1 high.  A very useful logic chip.

The enable inputs are like that so you can expand the decoder from 3-to-8 to I think a one of 32 selector using no other logic chips.

Quote
Like this, what other logic chips are good to know about and can do unique things!

Pretty much all of the non-primitive-gate devices in the 74-series (and older CMOS 4000 family) have clever inputs like that to simplify designs. Eliminating the glue of primitive gates (AND, etc) made layout easier.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21992
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: So the 74x138 is pretty cool...
« Reply #2 on: March 14, 2018, 05:30:35 am »
CD4043 -- quad R-S latch, useful for multi-level fault latching in controllers
CD4047 -- multivibrator with complementary outputs (I've used it before as part of a forward converter)
74LVC3G17 -- 5V tolerant triple schmitt buffer, and handy as a gate driver when you need something beefier than a regular CMOS logic output (also TinyLogic equivalents)
74HC74 -- classic dual D f/f of course, use however you like
74HC7014 -- hex schmitt buffer with precision threshold, great for line receivers, and analog applications where you can't be bothered to wire up a line of comparators at a fixed threshold

Speaking of glue logic, single or few-gate models are great.  74HC1G14 and the like.  Single or triple inverters/buffers, single or dual gates, single D-f/f, etc.

RS422 and LVDS transceivers -- cheap comparators, the former including modest speed and usually impressive ESD capacity.

CD4046 -- the original logic family PLL, and still best.  Apparently they fucked up the design in the 'HC4046 (PC2 dead band, osc nonlinearity), tried to fix it twice (7046 and 9046) and never really got their head out of their ass.  So, if you need good performance (at not much frequency, since it only runs at a few MHz), do go for the original.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline capt bullshot

  • Super Contributor
  • ***
  • Posts: 3033
  • Country: de
    • Mostly useless stuff, but nice to have: wunderkis.de
Re: So the 74x138 is pretty cool...
« Reply #3 on: March 14, 2018, 07:33:30 am »
'595 and '597 (shift registers with latch) make up super simple port expanders for microcontrollers - you can cascade them (the '595 for outputs and the '597 for inputs) and e.g. make 16 inputs and 16 outputs out of four controller pins (2x '595 and 2x '597). Use a SPI device or bit banging to serve them, I did that quite often back in the days and still sometimes today.
Safety devices hinder evolution
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21992
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: So the 74x138 is pretty cool...
« Reply #4 on: March 14, 2018, 07:52:41 am »
And '164 for inputs!

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Wolfram

  • Frequent Contributor
  • **
  • Posts: 392
  • Country: no
Re: So the 74x138 is pretty cool...
« Reply #5 on: March 14, 2018, 09:08:13 am »
On the topic of the single gate glue logic, the 74LVC1G3157 is an SPDT analog switch in SOT23-6. An excellent universal building block. This, along with the universal gates 74LVC1G57 and 74LVC1G58 allows a wide variety of logic functions to be implemented, without stocking a lot of different part numbers.
 

Offline TerraHertz

  • Super Contributor
  • ***
  • Posts: 3958
  • Country: au
  • Why shouldn't we question everything?
    • It's not really a Blog
Re: So the 74x138 is pretty cool...
« Reply #6 on: March 14, 2018, 10:22:52 am »
HC125 and HCU04 are both quite useful for analog circuits.
'259 is a nice way to provide 8 addressable control bits.
Collecting old scopes, logic analyzers, and unfinished projects. http://everist.org
 

Offline Heartbreaker

  • Supporter
  • ****
  • Posts: 28
  • Country: dk
Re: So the 74x138 is pretty cool...
« Reply #7 on: March 14, 2018, 04:54:12 pm »
This, along with the universal gates 74LVC1G57 and 74LVC1G58 allows a wide variety of logic functions to be implemented, without stocking a lot of different part numbers.

Along these there is also the 1G97 and 1G98. The 1G99 even adds tri-state to its output.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19682
  • Country: gb
  • 0999
Re: So the 74x138 is pretty cool...
« Reply #8 on: March 14, 2018, 07:17:55 pm »
The 74HCT parts are always handy for level conversion from 3.3V logic to 5V logic, especially the buffer/line driver parts. The 74HCT241 gives 8 channels and the 74HCT176 has 4 and both are tri-state, so the outputs can be disconnected, if needs be. Then there's the 74HC4050, which has 15V tolerant inputs and is useful for 5V to 3.3V translation.
« Last Edit: March 15, 2018, 08:42:49 am by Hero999 »
 

Offline alank2Topic starter

  • Super Contributor
  • ***
  • Posts: 2188
Re: So the 74x138 is pretty cool...
« Reply #9 on: March 15, 2018, 03:24:54 am »
These are all great guys!
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2677
  • Country: us
Re: So the 74x138 is pretty cool...
« Reply #10 on: March 15, 2018, 04:02:31 am »
This, along with the universal gates 74LVC1G57 and 74LVC1G58 allows a wide variety of logic functions to be implemented, without stocking a lot of different part numbers.

Along these there is also the 1G97 and 1G98. The 1G99 even adds tri-state to its output.

Yep, I use these all the time.  There's also the CD4048, which is an interesting 8-input configurable gate, but I'm not sure there's a <5V version.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19682
  • Country: gb
  • 0999
Re: So the 74x138 is pretty cool...
« Reply #11 on: March 15, 2018, 08:55:08 am »
This, along with the universal gates 74LVC1G57 and 74LVC1G58 allows a wide variety of logic functions to be implemented, without stocking a lot of different part numbers.

Along these there is also the 1G97 and 1G98. The 1G99 even adds tri-state to its output.

Yep, I use these all the time.  There's also the CD4048, which is an interesting 8-input configurable gate, but I'm not sure there's a <5V version.
I've quickly Googled 74HC4048 and other variations, such as 74LV, LVC etc. and it doesn't exist. Like the rest of the 4000 series, the CD4048 will work at 5V and even 3V, but very slowly and with hardly any output drive.
« Last Edit: March 15, 2018, 09:14:53 am by Hero999 »
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7548
  • Country: 00
  • +++ ATH1
Re: So the 74x138 is pretty cool...
« Reply #12 on: March 15, 2018, 09:24:19 am »
Subbed, as this infos here might be useful someday.  :P

Online Kjelt

  • Super Contributor
  • ***
  • Posts: 6508
  • Country: nl
Re: So the 74x138 is pretty cool...
« Reply #13 on: March 15, 2018, 12:33:22 pm »
4013 dFF
401xx one shot don't remember the exact part number was high at the end of the 4000 series, very usefull in the era before the cheap uCs to trigger and delay the "response" signal, could be used for many things. Always looked at it more as an analog chip than a digital one.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21992
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: So the 74x138 is pretty cool...
« Reply #14 on: March 15, 2018, 06:24:32 pm »
74xx123?  CD4098 and CD4538 are other timers.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline alank2Topic starter

  • Super Contributor
  • ***
  • Posts: 2188
Re: So the 74x138 is pretty cool...
« Reply #15 on: March 17, 2018, 06:46:22 pm »
How do LVC and AHC logic families compare?  For 5V use, is one better than the other?
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19682
  • Country: gb
  • 0999
 

Offline alank2Topic starter

  • Super Contributor
  • ***
  • Posts: 2188
Re: So the 74x138 is pretty cool...
« Reply #17 on: March 17, 2018, 07:43:29 pm »
Thanks for the links; I've briefly looked at the TI comparison guide.  I wonder what the history is, which is newer, does one replace another, which advantages one might have over another, etc.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19682
  • Country: gb
  • 0999
Re: So the 74x138 is pretty cool...
« Reply #18 on: March 17, 2018, 10:49:30 pm »
Thanks for the links; I've briefly looked at the TI comparison guide.  I wonder what the history is, which is newer, does one replace another, which advantages one might have over another, etc.
Generally faster, i.e. lower rise/fall time and propagation delays are better, although require more attention to layout and decoupling. As a general rule, don't use anything much faster, than you really need. If classic CD4000 logic will do then go with it, as you can often get away with poor/no decoupling and it will work on a breadboard, where the faster logic families may start to misbehave.
 

Offline alank2Topic starter

  • Super Contributor
  • ***
  • Posts: 2188
Re: So the 74x138 is pretty cool...
« Reply #19 on: March 17, 2018, 11:27:45 pm »
Generally faster, i.e. lower rise/fall time and propagation delays are better, although require more attention to layout and decoupling. As a general rule, don't use anything much faster, than you really need. If classic CD4000 logic will do then go with it, as you can often get away with poor/no decoupling and it will work on a breadboard, where the faster logic families may start to misbehave.

I learned that big time with some very fast SRAM I was trying to use (10ns vs 55ns).  There is another thread around here about it!
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5347
  • Country: gb
Re: So the 74x138 is pretty cool...
« Reply #20 on: March 18, 2018, 12:03:00 am »
This is an interesting thread, not least because I haven’t used any traditionally based logic in any of my designs for some years, and the last time was for simple level translation.

I was brought up in the 70s on 74 series TTL (straight up, none of this LS nonsense), and even some DTL, and still maintain a pretty reasonable selection of more modern variations in stock particularly in little logic versions in LVC, AUC and AUP, which are used for one-offs and jigs, but in commercial products I invariably end up engineering them out nowadays.

Which is a shame, as they hold sentimental value, they are a major part of my EE career.

In those days, just like the modern day Windows vs Linux and PIC vs Atmel culture wars, there was a minor TTL vs CMOS war going on, based around the perceived fragility of 4000 series compared to the power hogging but faster TTL. Of course the benefit of hindsight is that you used the best to fit the bill, based on a multitude of functional and non-functional requirements, and available skills. Plus ca change.

Edit: when I was 14, I won a school book prize. ISTR the budget was about £5-£10. I chose the TTL Data Book. I am sure that tome has been on the bookshelves of many thousands of engineers, and TI still lives off its reputation, and usually these days still deserves it.
« Last Edit: March 18, 2018, 12:10:20 am by Howardlong »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf